make the ssh-agent prompt from seckey2sshagent more intelligible
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 21 Jun 2008 20:40:27 +0000 (16:40 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 21 Jun 2008 20:40:27 +0000 (16:40 -0400)
src/seckey2sshagent

index d8e9b79ac2e86da91cf156de986a8434135e7b37..4d08c66878d227332f03ceafd9fc93489616e3ed 100755 (executable)
@@ -37,4 +37,6 @@ gpg --export-secret-key --export-options export-reset-subkey-passwd $GPGID | GNU
 
 GNUPGHOME=$FOO gpg --edit-key $GPGID
 
-GNUPGHOME=$FOO gpg --export-secret-key $GPGID | openpgp2ssh $GPGID | ssh-add -c /dev/stdin
+ln -s /dev/stdin $FOO/monkeysphere-key
+
+GNUPGHOME=$FOO gpg --export-secret-key $GPGID | openpgp2ssh $GPGID | (cd $FOO && ssh-add -c monkeysphere-key)