summaryrefslogtreecommitdiffstats
path: root/ssh-hostkeys
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-04-02 19:40:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-04-02 19:40:05 +0200
commit357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3 (patch)
tree13f0394586e50f42878d8ee2a6d4570b6f986aa1 /ssh-hostkeys
parent404b8cf4a1fbb3f028df1095be1d5795c5747534 (diff)
downloadbin-357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3.tar.gz
bin-357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3.tar.xz
ssh-hostkeys: Also output md5 hashes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ssh-hostkeys')
-rwxr-xr-xssh-hostkeys7
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh-hostkeys b/ssh-hostkeys
index 1cd2bdf..15138f6 100755
--- a/ssh-hostkeys
+++ b/ssh-hostkeys
@@ -1,5 +1,8 @@
#!/bin/bash
-for file in /etc/ssh/ssh_host_*.pub; do
- ssh-keygen -l -f $file
+for type in sha256 md5; do
+ for file in /etc/ssh/ssh_host_*.pub; do
+ ssh-keygen -l -f $file -E $type
+ done
+ echo
done