两条命令在Linux主机之间建立信任关系

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              //测试

原文地址:https://www.cnblogs.com/losbyday/p/7246225.html