From: Jameson Graef Rollins Date: Sat, 15 Nov 2008 23:45:25 +0000 (-0500) Subject: remove pruning of the ssh fingerprint output in monkeysphere-server X-Git-Tag: monkeysphere_0.22-1~13^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5d87b83453aa7888f64b72a74fb16b9d3b65c4a;p=monkeysphere.git remove pruning of the ssh fingerprint output in monkeysphere-server show-key function. the extra info (key length and type) are useful to have. --- diff --git a/src/monkeysphere-server b/src/monkeysphere-server index e78903b..0815b32 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -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"