Bob Mottram 8 yıl önce
ebeveyn
işleme
a8bc2b5906
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      src/freedombone-utils-ssh

+ 2
- 2
src/freedombone-utils-ssh Dosyayı Görüntüle

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