久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Linux 系統(tǒng)系統(tǒng)如何使用私鑰登錄

      Linux 系統(tǒng)系統(tǒng)如何使用私鑰登錄?Linux服務器每次都要輸入負責的密碼,為了方便、安全登錄Linux服務器,使用私鑰公鑰來登錄。

      生成ssh公鑰密鑰對:

        #ssh-keygen -t rsa

      -t? rsa? ? 是指采用rsa加密方式的公鑰/私鑰對。

      -b? ? ? ? ? ?是指公鑰/私鑰對的長度,一般為1024,2048。默認為2048字節(jié)。

      Linux 系統(tǒng)系統(tǒng)如何使用私鑰登錄

      進入/root/.ssh目錄下:

        # cat id_rsa.pub >> authorized_keys  # chmod 600 authorized_keys

      Linux 系統(tǒng)系統(tǒng)如何使用私鑰登錄

      下載私鑰 id_rsa,這樣,便可以通過私鑰來免密登錄服務器了!

      PS:

      配置文件/etc/ssh/sshd_config

      Linux 系統(tǒng)系統(tǒng)如何使用私鑰登錄

      在測試中,

      #PasswordAuthentication yes
      #PermitEmptyPasswords no

      沒有注釋掉#,也能通過私鑰登錄。

      總結(jié):在配置過程中,忘記cat id_rsa.pub >> authorized_keys,導致下載私鑰之后也不能登錄服務器。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號