summaryrefslogtreecommitdiff
path: root/tools/write-ssh-key-fingerprints
diff options
context:
space:
mode:
Diffstat (limited to 'tools/write-ssh-key-fingerprints')
-rwxr-xr-xtools/write-ssh-key-fingerprints10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/write-ssh-key-fingerprints b/tools/write-ssh-key-fingerprints
new file mode 100755
index 00000000..9a081faa
--- /dev/null
+++ b/tools/write-ssh-key-fingerprints
@@ -0,0 +1,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"