Linux下两步实现免密码登录设置

假设主机1需要免密码登录到主机2

主机1:

步骤一:

[root@host51 ~]# ssh-keygen -t rsa  [只需要按回车键]

步骤二:

[root@host51 ~]#ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]

猜你喜欢

转载自blog.csdn.net/zhydream77/article/details/81273037