:关闭防火墙 vim /etc/selinux/config
把SELINUX=enforcing修改为SELINUX=disabled
A机器root连接B机器root用户
(root用户登录)
ssh-keygen -t rsa
ssh-copy-id -i 10.4.9.151
ssh 10.4.9.151
B机器普通用户连接A机器root用户
(test用户登录)
ssh-keygen -t rsa
ssh-copy-id -i root@10.4.9.157
ssh root@10.4.9.157