SSH连接Linux服务器异常

当使用 SSH 登录云服务器 ECS (Elastic Compute Server) Linux 服务器时,即便正确输入了密码,在命令行或 secure 日志中也会出现类似如下错误信息,导致连接失败: /etc/init.d/sshd status Permission denied, please try again. error: Could not get shadow infromation for root. 该问题通常是由于系统启用了 SELinux 所致。 getenforce查看selinux状态: Enforcing 暂时关闭selinux setenforce 0 或者永久关闭 /etc/selinux/config SELINUX=disabled

猜你喜欢

转载自www.cnblogs.com/archer-wen/p/9711442.html