Ubuntu16.04 實現雙機互信

  1. 生成一個密匙 ssh-keygen -t rsa
  2. 發送密匙到目標服務器中 cd ~/.ssh ssh-copy-id -i id_rsa.pub [email protected] 輸入對應密碼
  3. 驗證 ssh 192.168.50.131 如果可以直接登錄,說明已經成功
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章