linux系统免密码登陆

有两台机器,系统都是CentOS6.5,IP分别为192.168.2.150,192.168.2.151。现在150需要SSH免密码登陆151。
在150上面执行命令,当前登录用户是root:
# ssh-keygen -t  rsa
# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@192.168.2.151

原文地址:https://www.cnblogs.com/huiy/p/5406854.html