fix bugs in ssh key export functions
authorJameson Graef Rollins <jrollins@phys.columbia.edu>
Fri, 13 Jun 2008 16:37:08 +0000 (12:37 -0400)
committerJameson Graef Rollins <jrollins@phys.columbia.edu>
Fri, 13 Jun 2008 16:37:08 +0000 (12:37 -0400)
man/man1/monkeysphere.1
src/common

index 636adcb455ef6a92df9870ed5e5829f916ab1258..d00a9db07b2d4765346ae47c4a20d867bfe17374 100644 (file)
@@ -107,5 +107,6 @@ Written by Jameson Rollins <jrollins@fifthhorseman.net>
 .PD
 .SH SEE ALSO
 .BR ssh (1),
+.BR monkeysphere-ssh-proxycommand (1),
 .BR gpg (1),
 .BR monkeysphere-server (8)
index 914c800a24d6d3471fc2f2eaaa477a47d085b5d2..8b0f41adc1d3d6b20780657c69fc8c649fd33ebd 100644 (file)
@@ -98,7 +98,7 @@ gpg2known_hosts() {
     echo -n "$host "
     gpg --export "$keyID" | \
        openpgp2ssh "$keyID" | tr -d '\n'
-    echo "MonkeySphere${DATE}"
+    echo " MonkeySphere${DATE}"
 }
 
 # convert key from gpg to ssh authorized_keys format
@@ -109,9 +109,9 @@ gpg2authorized_keys() {
     keyID="$1"
     userID="$2"
 
-    echo -n "MonkeySphere${DATE}:${userID}"
     gpg --export "$keyID" | \
-       openpgp2ssh "$keyID"
+       openpgp2ssh "$keyID" | tr -d '\n'
+    echo " MonkeySphere${DATE}:${userID}"
 }
 
 # userid and key policy checking