分享

远程uos机器时,root用户无法通过密码直接登录

本帖最后由 sky_mld 于 2024-3-8 08:50 编辑

当安装完openssh-server后,服务正常启动,防火墙没有拦截,selinux关闭

sudo apt install openssh-server
sudo systemctl start sshd
sudo systemctl stop ufw


[ssl@ssl-PC /var/log]$ getenforce
Disabled

[ssl@ssl-PC /var/log]$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain DOCKER (0 references)
target     prot opt source               destination

Chain DOCKER-ISOLATION-STAGE-1 (0 references)
target     prot opt source               destination

Chain DOCKER-ISOLATION-STAGE-2 (0 references)
target     prot opt source               destination

Chain DOCKER-USER (0 references)
target     prot opt source               destination


当尝试连接时,直接拒绝,但是直接在机器上输入密码是没有问题的:
root@webserver:~# ssh root@192.168.1.12
The authenticity of host '192.168.1.12(192.168.1.12)' can't be established.
ECDSA key fingerprint is SHA256:30c8gNsdLcLt5DLLujcNpANWhSvFPLzmv5jS3a+BgnA.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.12' (ECDSA) to the list of known hosts.
root@192.168.1.12's password:
Permission denied, please try again.



查看日志:

2024-03-08 08:14:27 ssl-PC sshd[27893]:  pam_deepin_authentication(sshd:auth): Failed to call 'FindUserByName': com.deepin.DBus.Error.Unnamed, invalid username: root
2024-03-08 08:14:27 ssl-PC sshd[27893]:  pam_deepin_authentication(sshd:auth): IsMFA: '0', Username: 'root'
2024-03-08 08:14:27 ssl-PC sshd[27893]:  pam_deepin_authentication(sshd:auth): index(30) out of limit type
2024-03-08 08:14:27 ssl-PC sshd[27893]:  pam_deepin_authentication(sshd:auth): 请输入密码
2024-03-08 08:14:27 ssl-PC deepin-authentication:  pam_unix(deepin_pam_unix:auth): authentication failure; logname= uid=0 euid=0 tty=tt[/27893][/27893][/27893][/27893][/fingerprint]

试读已结束,请付费阅读全文。

  本文只能试读34%,付费后可阅读全文。 

版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服