This commit is contained in:
Bob Mottram 2018-04-24 17:51:08 +01:00
parent e0298d0cab
commit ce35f1f2b8
1 changed files with 0 additions and 2 deletions

View File

@ -233,11 +233,9 @@ function show_domains {
fi fi
if [ -f /etc/ssh/ssh_host_rsa_key.pub ]; then if [ -f /etc/ssh/ssh_host_rsa_key.pub ]; then
#W+=("SSH RSA Md5" "$(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | awk -F ' ' '{print $2}')")
W+=("SSH RSA SHA256" "$(awk '{print $2}' /etc/ssh/ssh_host_rsa_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64 | sed 's|=||g')") W+=("SSH RSA SHA256" "$(awk '{print $2}' /etc/ssh/ssh_host_rsa_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64 | sed 's|=||g')")
fi fi
if [ -f /etc/ssh/ssh_host_ed25519_key.pub ]; then if [ -f /etc/ssh/ssh_host_ed25519_key.pub ]; then
#W+=("SSH ED25519 Md5" "$(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk -F ' ' '{print $2}')")
W+=("SSH ED25519 SHA256" "$(awk '{print $2}' /etc/ssh/ssh_host_ed25519_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64 | sed 's|=||g')") W+=("SSH ED25519 SHA256" "$(awk '{print $2}' /etc/ssh/ssh_host_ed25519_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64 | sed 's|=||g')")
fi fi