linux的SSH相互访问
A为192.168.1.86 B为192.168.1.84
在B中执行ssh-keygen -t rsa -C "[email protected]"
将B中的公钥拷贝到A的authorized_key中
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
ssh 192.168.1.86 不用输入密码访问即可
A为192.168.1.86 B为192.168.1.84
在B中执行ssh-keygen -t rsa -C "[email protected]"
将B中的公钥拷贝到A的authorized_key中
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
ssh 192.168.1.86 不用输入密码访问即可