diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-02 19:40:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-02 19:40:05 +0200 |
commit | 357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3 (patch) | |
tree | 13f0394586e50f42878d8ee2a6d4570b6f986aa1 | |
parent | 404b8cf4a1fbb3f028df1095be1d5795c5747534 (diff) | |
download | bin-357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3.tar.gz bin-357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3.tar.xz |
ssh-hostkeys: Also output md5 hashes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | ssh-hostkeys | 7 |
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 |