diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-21 20:32:33 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-21 20:32:33 -0400 |
commit | d263f30d4fe03d1976ecd899ba2482cb870c2a4d (patch) | |
tree | 579896c653a48844f5ed874240b4e333e58abadf /src/seckey2sshagent | |
parent | 6a202af09f5a1bc47069e5e36dbdfa3f6b392a5b (diff) |
Improved gen-key function for server.
Update TODO.
Diffstat (limited to 'src/seckey2sshagent')
-rwxr-xr-x | src/seckey2sshagent | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/seckey2sshagent b/src/seckey2sshagent index aff323f..1266db5 100755 --- a/src/seckey2sshagent +++ b/src/seckey2sshagent @@ -16,9 +16,9 @@ cleanup() { - echo -n "removing temp gpg home... " + echo -n "removing temp gpg home... " 1>&2 rm -rf $FOO - echo "done." + echo "done." 1>&2 } trap cleanup EXIT @@ -46,6 +46,7 @@ gpg --export-secret-key $GPGID | GNUPGHOME="$FOO" gpg --import GNUPGHOME="$FOO" gpg --edit-key $GPGID -ln -s /dev/stdin "$FOO"/monkeysphere-key +ln -s /dev/stdin "$FOO"/openpgp -GNUPGHOME="$FOO" gpg --export-secret-key $GPGID | openpgp2ssh $GPGID | ssh-add -c /dev/stdin +GNUPGHOME="$FOO" gpg --export-secret-key $GPGID | \ + openpgp2ssh $GPGID | ssh-add -c "$FOO"/openpgp |