Alignment

This commit is contained in:
Bob Mottram 2016-11-22 23:55:08 +00:00
parent e2a8677fbd
commit a8bc2b5906
1 changed files with 2 additions and 2 deletions

View File

@ -154,8 +154,8 @@ function configure_firewall_for_ssh {
function get_ssh_server_key {
if [ -f /etc/ssh/ssh_host_rsa_key.pub ]; then
echo "RSA Md5: $(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | awk -F ' ' '{print $2}')"
echo "RSA SHA256:$(awk '{print $2}' /etc/ssh/ssh_host_rsa_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64)"
echo "RSA Md5: $(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | awk -F ' ' '{print $2}')"
echo "RSA SHA256: $(awk '{print $2}' /etc/ssh/ssh_host_rsa_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64)"
fi
if [ -f /etc/ssh/ssh_host_ed25519_key.pub ]; then
echo "ED25519 Md5: $(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk -F ' ' '{print $2}')"