云堡垒机 CBH-通过Web浏览器登录主机资源,报Code:C_769错误怎么办?:检查Linux主机是否拒绝root账户登录

时间:2024-01-10 14:50:33

检查Linux主机是否拒绝root账户登录

由于sshd服务配置文件“/etc/ssh/sshd_config”中,“PermitRootLogin”参数值为“no”时,Linux主机不允许root账户登录。

  1. 登录Linux主机,查看sshd服务的配置文件。
  2. “/etc/ssh/sshd_config”文件中,查找“PermitRootLogin”参数,确认参数值是否为“no”
  3. 修改“/etc/ssh/sshd_config”文件。

    查找“PermitRootLogin”参数,修改参数值为“yes”或注释掉参数所在行。

    #PermitRootLogin no

  4. 执行以下命令,重启sshd服务。

    systemctl restart sshd

完成上述操作后,请重新尝试在云堡垒机上登录Linux主机。

support.huaweicloud.com/cbh_faq/cbh_03_1056.html