A机器想免密B机器 在A机器上执行 ssh-keygen -t rsa 点三下回车 使用ssh-copy-id -i .ssh/id_rsa.pub 用户名字@192.168.x.xxx 修改B机器 vim /etc/ssh/sshd_config 开启 - PubkeyAuthentication yes- RSAAuthentication yes重启服务 service sshd restart