SSH免密登录
linux多主机免密登陆
1.A主机执行命令
#ssh-keygen -t rsa
#ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.16.68.29 (B主机)
2.B主机上查看
# ll /root/.ssh
total 12
-rw------- 1 root root 399 Jan 15 14:27 authorized_keys --执行上述命令后生成该文件
-rw------- 1 root root 1675 Jan 15 14:19 id_rsa
-rw-r--r-- 1 root root 399 Jan 15 14:19 id_rsa.pub
3.验证免密登陆
#ssh 172.16.68.29