假设有A:192.168.0.10
B:192.168.0.11
A想不使用密码ssh连接B
在A机器上执行以下命令:
ssh-keygen -t rsa
ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.11
B想不使用密码ssh连接A
ssh-keygen -t rsa
ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.12
|
|||
假设有A:192.168.0.10 B:192.168.0.11 A想不使用密码ssh连接B 在A机器上执行以下命令: ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.11 B想不使用密码ssh连接A ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.12 |
|||