Xshell 密鑰登錄

密鑰:公鑰放於服務器,私鑰放於客戶端,二者之間配對成功以後,則可認證成功。
1、
1首先在服務器上建立目錄。
mkdir /root.ssh
2.修改權限
chmod 700 /root/.ssh
3.須要關閉防火牆
setenforce 0
關於防火牆
首先查看防火牆狀態:service iptables status
永久性開啓:chkconfig iptables on
永久性關閉:chkconfig iptables off
即時生效,重啓後復原 :service iptables start 開啓
即時生效,重啓後復原 :service iptables stop 關閉shell

1.打開xshell 軟件
Xshell 密鑰登錄
2,密鑰長度越大,生成的密鑰複雜度越大
Xshell 密鑰登錄
3,選擇下一步
Xshell 密鑰登錄
4 自定義名稱及密碼
Xshell 密鑰登錄
5 圖中是所示,即是公鑰。此密鑰須要保存好
Xshell 密鑰登錄
6.編輯此文件
vi /root/.ssh/authorized_keys 粘貼到此處
Xshell 密鑰登錄
6.從新打開機器,點擊IP屬性。用戶登錄驗證方式,修改圖中標註的內容。輸入密碼,點擊確認。
7.Xshell 密鑰登錄
7.點擊鏈接,即可打開。
8.Xshell 密鑰登錄服務器

相關文章
相關標籤/搜索