配置互信

配置無密碼登錄本機ssh

ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa配置

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keysrsa

chmod 0600 ~/.ssh/authorized_keys密碼

而後將~/.ssh/id_rsa.pub即公鑰發送到對端機器,而後對端機器執行ssh-key

cat ~/id_rsa.pub >> ~/.ssh/authorized_keysauth

便可

相關文章
相關標籤/搜索