summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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