remove pruning of the ssh fingerprint output in monkeysphere-server
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 15 Nov 2008 23:45:25 +0000 (18:45 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Sat, 15 Nov 2008 23:45:25 +0000 (18:45 -0500)
show-key function.  the extra info (key length and type) are useful to
have.

src/monkeysphere-server

index e78903b8e1d6cce2725e7c04a881cff3ae027a79..0815b32142d40710feab28496a0087a06419d49b 100755 (executable)
@@ -137,7 +137,7 @@ show_server_key() {
     tmpkey=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) || failure "Could not create temporary directory!"
     gpg_authentication "--export $fingerprint" | openpgp2ssh "$fingerprint" 2>/dev/null > "$tmpkey/ "
     echo -n "ssh fingerprint: "
-    (cd "$tmpkey" && ssh-keygen -l -f ' ' | awk '{ print $2 }')
+    (cd "$tmpkey" && ssh-keygen -l -f ' '
     rm -rf "$tmpkey"
     echo -n "OpenPGP fingerprint: "
     echo "$fingerprint"