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  [email protected]

猜你喜欢

转载自huiy.iteye.com/blog/2262687