客户端: ssh-keygen -t rsa 服务器端 mkdir .ssh chmod 755 .ssh 将公钥从客户端上传到服务器 scp .ssh/id_rsa.phb 服务器ip:.ssh/authorized_keys