summaryrefslogtreecommitdiff
path: root/tools/write-ssh-key-fingerprints
blob: 9a081faaf499cc22d7a450ea417ca253eac4bdb8 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
{
echo
echo "#############################################################"
echo "-----BEGIN SSH HOST KEY FINGERPRINTS-----"
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
echo "-----END SSH HOST KEY FINGERPRINTS-----"
echo "#############################################################"
} | logger -p user.info -s -t "ec2"