소스 검색

Alignment

Bob Mottram 8 년 전
부모
커밋
e2a8677fbd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/freedombone-utils-ssh

+ 2
- 2
src/freedombone-utils-ssh 파일 보기

@@ -154,11 +154,11 @@ 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}')"
157
+        echo "RSA Md5:   $(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub | awk -F ' ' '{print $2}')"
158 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
-        echo "ED25519 Md5:$(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk -F ' ' '{print $2}')"
161
+        echo "ED25519 Md5:   $(ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | awk -F ' ' '{print $2}')"
162 162
         echo "ED25519 SHA256:$(awk '{print $2}' /etc/ssh/ssh_host_ed25519_key.pub | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64)"
163 163
     fi
164 164
 }