write-ssh-key-fingerprints: do not send HOST KEYS through logger

In the previous commit to htis file I had wrapped the writing of
'BEGIN SSH HOST KEY KEYS' to go through logger.

This would cause the keys to be prefixed with 'ec2:' which, previously they
were not.  That would break existing users *and* make it more difficult to
consume that data, which was explicitly added to be easy to consume.
This commit is contained in:
Scott Moser 2012-09-24 14:48:44 -04:00
parent f73acd4a02
commit cc47e6d005
1 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,8 @@ done
echo "-----END SSH HOST KEY FINGERPRINTS-----"
echo "#############################################################"
} | logger -p user.info --stderr -t "ec2"
echo -----BEGIN SSH HOST KEY KEYS-----
for f in /etc/ssh/ssh_host_*key.pub; do
[ -f "$f" ] || continue
@ -25,5 +27,3 @@ for f in /etc/ssh/ssh_host_*key.pub; do
cat $f
done
echo -----END SSH HOST KEY KEYS-----
} | logger -p user.info --stderr -t "ec2"