小编Rag*_*pta的帖子

禁用 Root 登录后 SSH 失败

为 RHEL 客户端生成私钥和公钥并将公钥存储在 RHEL 7 服务器的authorized_keys 文件夹中后,我通过转至 PermitRootLogin并将/etc/ssh/sshd_config其设置为 no 来禁用服务器中的 Root 登录。之后我重新启动了 sshd 服务。

现在,当我尝试从客户端到服务器进行 ssh 时,它说

权限被拒绝(publickey、gssapi-keyex、gssapi-with-mic、密码)

为什么我会收到此消息?

linux ssh redhat public-key-encryption rhel7

0
推荐指数
1
解决办法
71
查看次数

标签 统计

linux ×1

public-key-encryption ×1

redhat ×1

rhel7 ×1

ssh ×1