centos 6.5 配置ssh免登录

生成密匙:

ssh-keygen -t rsa

会生成 id_rsa  id_rsa.pub

id_rsa:私匙

id_rsa.pub:公匙

配置当前机器免登录:

cp id_rsa.pub authorized_keys

ssh “当前机器名”

 配置远程机器免登录:

ssh-copy-id “远程机器ip”,就可使用ssh免密码登录指定“远程机器ip”

原文地址:https://www.cnblogs.com/lvlv/p/6390003.html