ssh到centos主机
yum install -y openssl openssh-server vim /etc/ssh/sshd_config 打开下面的配置: Port 22 AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: PermitRootLogin yes RSAAuthentication yes PubkeyAuthentication yes 配置ssh-id ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host ssh root@remote-host 来源: oschina 链接: https://my.oschina.net/u/2450666/blog/3188780