cd ~/.ssh/ ssh-keygen 把本地的id_rsa.pub 内容复制到.ssh/authorized_keys chmod o-w ~/;chmod 700 ~/.ssh;chmod 600 ~/.ssh/authorized_keys