天天看點

【Linux基礎系列】免密登入設定

目标:ip A 可以不用密碼登入 b c d 機器

1、在A機器生成公鑰

ssh-keygen
           

2、預設生成的公鑰位置  

 ls  ~/.ssh/id_rsa.pub
           

3、上傳公鑰到 b c d 伺服器

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
           

4、 測試  ssh [email protected]