标签:rsa keygen 免密码 主机 yum linux linux系统 使用 code
Linux系统做免密,秘钥登录要注意一下几点:
检查是否按照ssh ssh -V 如果没有安装ssh,使用如下命令安装: yum install -y openssh-clients 主机A: ssh-keygen cat /root/.ssh/id_rsa.pub scp /root/.ssh/id_rsa.pub root@主机B:/root/.ssh/authorized_keys 在主机B上: chmod 600 /root/.ssh/authorized_keys 主机A: ssh 主机B IP
标签:rsa keygen 免密码 主机 yum linux linux系统 使用 code
原文地址:https://www.cnblogs.com/hujianli/p/9347558.html