假设主机1需要免密码登录到主机2
主机1:
步骤一:
[root@host51 ~]# ssh-keygen -t rsa [只需要按回车键]
步骤二:
[root@host51 ~]#ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]
假设主机1需要免密码登录到主机2
主机1:
步骤一:
[root@host51 ~]# ssh-keygen -t rsa [只需要按回车键]
步骤二:
[root@host51 ~]#ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]