새로 생성된 계정으로 SSH를 연결할 수 없습니다.

새로 생성된 계정으로 SSH를 연결할 수 없습니다.

돕다!

새로 생성된 사용자를 사용하여 RHEL 7.9 서버에 로그인하는 데 문제가 있습니다. 및 AllowUsers서비스 에도 사용자가 추가되었습니다 .sshd_configsshd

사용자 비밀번호가 잘못 설정된 것 같습니다. 누구든지 도와줄 수 있나요? 해결책을 찾으려고 노력했지만 아직 아무것도 찾지 못했습니다. 아래 세부정보를 참조하세요. 감사해요

[root@server1 security]# useradd test1
[root@server1 security]# passwd test1
Changing password for user test1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@server1 security]# passwd -S test1
test1 LK 2021-08-26 7 90 7 30 (Password locked.)
[root@server1 security]# passwd -u test1
Unlocking password for user test1.
passwd: Warning: unlocked password would be empty.
passwd: Unsafe operation (use -f to force)
[root@server1 security]# passwd -uf test1
Unlocking password for user test1.
passwd: Success
[root@server1 security]# passwd -S test1
test1 NP 2021-08-26 7 90 7 30 (Empty password.)
[root@server1 security]# passwd test1
Changing password for user test1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@server1 security]# passwd -S test1
test1 NP 2021-08-26 7 90 7 30 (Empty password.)
[root@server1 security]# cat /etc/passwd | grep test1
test1:x:1011:1011::/home/test1:/bin/bash
[root@server1 security]# cat /etc/shadow | grep test1
test1::18865:7:90:7:30::

UID에는 항목이 하나만 있습니다 1101.

awk -F: '$3=="1011"' /etc/passwd

또한 이것은 독립형 서버입니다. 외부 인증 시스템을 사용하지 않습니다.

관련 정보