Linux ssh免密登錄

期望:機器A免密登錄機器B的root用戶 1.在A上生成密鑰: ssh-keygen -t rsa 2.在A上將公鑰複製到B上 ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] 另外,這裏的機器A其實是window,只不過使用了Git的Bash 加了免密登錄後,就可以在window直接運行腳本操作服務器了。
相關文章
相關標籤/搜索