ssh-keygen -t rsa

一直回车,直到结束


ssh-copy-id -i  root@1.1.1.1  此处为要远程登陆的服务器IP

>yes

>password