ssh公钥配置 Posted on 2018-01-Tue Edited on 2018-04-Sun Views: Views: 1ssh-keygen -t rsa1234A主机上操作$ cat /root/.ssh/id_rsa.pub | ssh root@远程服务器ip 'cat - >> ~/.ssh/authorized_keys'B主机上操作$ chmod 600 ~/.ssh/authorized_keys123$ vim /etc/ssh/sshd_configPubkeyAuthentication yes //将该项改为yes sudo service sshd restart