From 7f3c96e9e6f4ef8cd3c480b9ff2da7801e03415b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Nov 2016 23:57:25 +0000 Subject: [PATCH] Remove equals --- src/freedombone-utils-ssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index f4800cc9..7503420e 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -155,11 +155,11 @@ 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 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 echo "ED25519 Md5: $(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk -F ' ' '{print $2}')" - echo "ED25519 SHA256:$(awk '{print $2}' /etc/ssh/ssh_host_ed25519_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64)" + echo "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 }