Skip to content
Snippets Groups Projects
Commit ce35f1f2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent e0298d0c
No related branches found
No related tags found
No related merge requests found
......@@ -233,11 +233,9 @@ function show_domains {
fi
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')")
fi
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')")
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment