权限问题.ssh和authroized_keys权限 12chmod 700 .sshchmod 600 .ssh/authorized_keys ssh配置文件12345678# 使用公钥认证PubkeyAuthentication yes # 认证秘钥文件AuthorizedKeysFile .ssh/authorized_keys# 密码认证关闭PasswordAuthentication no# 关闭Root登录PermitRootLogin no 保存配置重启sshd服务 1systemctl restart sshd.service