diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-09-24 14:48:44 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-24 14:48:44 -0400 |
commit | ad22d407085009dcd1c860185e29f21858cdd968 (patch) | |
tree | bf63669a4ece47c28996cc09622ddbbd620b7acf /tools/write-ssh-key-fingerprints | |
parent | 54e11417c93b646746a704a5ea85b47c3831fed4 (diff) | |
download | vyos-cloud-init-ad22d407085009dcd1c860185e29f21858cdd968.tar.gz vyos-cloud-init-ad22d407085009dcd1c860185e29f21858cdd968.zip |
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.
Diffstat (limited to 'tools/write-ssh-key-fingerprints')
-rwxr-xr-x | tools/write-ssh-key-fingerprints | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/write-ssh-key-fingerprints b/tools/write-ssh-key-fingerprints index 130fc0c1..aa1f3c38 100755 --- a/tools/write-ssh-key-fingerprints +++ b/tools/write-ssh-key-fingerprints @@ -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" |