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:
parent
f73acd4a02
commit
cc47e6d005
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user