兩台伺服器IP如下配置 Linux1: 10.0.0.1 Linux2: 10.0.0.2 Linux1伺服器執行如下操作: # ssh-keygen -t rsa # sudo scp .ssh/id_rsa.pub [email protected]:/root/.ssh/authorized_keys ...
兩台伺服器IP如下配置
Linux1: 10.0.0.1 Linux2: 10.0.0.2
Linux1伺服器執行如下操作:
# ssh-keygen -t rsa
然後一直回車就行
# sudo scp .ssh/id_rsa.pub root@10.0.0.2:/root/.ssh/authorized_keys
Linux2伺服器執行如下操作:
# ssh-keygen -t rsa
然後一直回車就行
# sudo scp .ssh/id_rsa.pub root@10.0.0.1:/root/.ssh/authorized_keys