From 357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 2 Apr 2016 19:40:05 +0200 Subject: ssh-hostkeys: Also output md5 hashes Signed-off-by: Florian Pritz --- ssh-hostkeys | 7 +++++-- 1 file 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 -- cgit v1.2.3-24-g4f1b