patch for Yubikey authentication for git/ssh #549

Closed
chrisbgit opened this Issue Jan 30, 2013 · 1 comment

2 participants

@chrisbgit
diff --git a/magit.el b/magit.el
index c0274c8..77c7a37 100644
--- a/magit.el
+++ b/magit.el
@@ -2193,7 +2193,9 @@ magit-topgit and magit-svn"
                (string-match "^Password for '\\\(.*\\\)':" string))
            (setq ask (format "Password for '%s': " (match-string 1 string))))
           ((string-match "^[pP]assword:" string)
-           (setq ask "Password:")))
+           (setq ask "Password:"))
+          ((string-match "^Yubikey for .*: $" string)
+          (setq ask "Yubikey: " )))
     (when ask
       (process-send-string proc (concat (read-passwd ask nil) "\n")))))
@tarsius tarsius was assigned May 29, 2013
@tarsius
Magit member

I might as well. Done in ca75621. Better late than never, right? :-)

@tarsius tarsius closed this Jul 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment