配置互信

配置无密码登陆本机

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

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

chmod 0600 ~/.ssh/authorized_keys

然后将~/.ssh/id_rsa.pub即公钥发送到对端机器,然后对端机器执行

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

即可

posted @ 2020-07-01 17:01  九命猫幺  阅读(393)  评论(0编辑  收藏  举报