ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa    //生成当前用户密钥

 

ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.19.203  //拷贝到远程机器上面

 

 

ssh root@192.168.19.203              //测试

相关文章: