两台服务器IP如下配置
Linux1: 10.0.0.1 Linux2: 10.0.0.2
Linux1服务器执行如下操作:
# ssh-keygen -t rsa
然后一直回车就行
# sudo scp .ssh/id_rsa.pub root@10.0.0.2:/root/.ssh/authorized_keys
Linux2服务器执行如下操作:
# ssh-keygen -t rsa
然后一直回车就行
# sudo scp .ssh/id_rsa.pub root@10.0.0.1:/root/.ssh/authorized_keys