免费资源网 – https://freexyz.cn/
由于升级OpenSSH服务需要临时设置Telnet访问,在输入正确信息后遇到问题后进行记录。
错误信息配置完成Telnet后进行连接发现无法登陆,提示登陆失败
[root@localhost ~]# telnet 127.0.0.1 Trying 127.0.0.1… Connected to 127.0.0.1. Escape characteris ^]. Kernel 3.10.0-1127.el7.x86_64 onan x86_64 localhost login: root Password: Login incorrect查看报错内容
[root@localhost ~]# tAIl -n 100 /var/log/secure Jun 30 15:06:17 localhost login: pam_securetty(remote:auth): access denied: tty pts/1 is notsecure ! Jun30 15:06:20 localhost login: pam_succeed_if(remote:auth): requirement “uid >= 1000” not met by user “root”Jun30 15:06:22 localhost login: FAILED LOGIN 1FROM localhost FOR root, Authentication failure Jun30 15:06:41 localhost login: pam_securetty(remote:auth): access denied: tty pts/1 is notsecure ! Jun30 15:06:42 localhost login: pam_unix(remote:auth): check pass; user unknown Jun 30 15:06:42localhost login: pam_unix(remote:auth): authentication failure; logname= uid=0 euid=0 tty=pts/1ruser= rhost=localhost Jun30 15:06:44 localhost login: FAILED LOGIN 2FROM localhost FOR (unknown), Usernot known to the underlying authentication module Jun 30 15:06:45localhost login: pam_securetty(remote:auth): access denied: ttypts/1 is not secure ! Jun 30 15:06:45localhost login: pam_unix(remote:auth): check pass; user unknown Jun30 15:06:46localhost login: FAILED LOGIN SESSION FROM localhost FOR (unknown), Usernot known to the underlying authentication module Jun 30 15:06:46localhost login: PAM1 more authentication failure; logname= uid=0 euid=0 tty=pts/1 ruser= rhost=localhost解决办法:
在/etc/securetty文件中添加tty内容借鉴自:https://www.programmersought.com/article/66085516467/
免费资源网 – https://freexyz.cn/
© 版权声明
THE END
暂无评论内容