본문 바로가기
Server/Linux

[Linux] Rocky9 계정 잠김 확인 및 해제

by 얽디 2026. 2. 6.

 

[root@blog ~]# tail -f /var/log/secure
Feb  6 11:39:04 blog sshd[1472177]: error: PAM: Authentication failure for test1 from 1x.xxx.x.x
Feb  6 11:39:04 blog sshd[1472177]: error: PAM: Authentication failure for test1 from 1x.xxx.x.x
Feb  6 11:39:04 blog sshd[1472177]: Connection closed by authenticating user test1 1x.xxx.x.x port 53328 [preauth]
Feb  6 11:39:04 blog sshd[1472177]: Connection closed by authenticating user test1 1x.xxx.x.x port 53328 [preauth]
Feb  6 11:39:42 blog sshd[1472613]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=1x.xxx.x.x  user=test1
Feb  6 11:39:42 blog sshd[1472613]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=1x.xxx.x.x  user=test1
Feb  6 11:39:44 blog sshd[1472611]: error: PAM: Authentication failure for test1 from 1x.xxx.x.x
Feb  6 11:39:44 blog sshd[1472611]: error: PAM: Authentication failure for test1 from 1x.xxx.x.x

 

 

 

[root@blog ~]# sysetmctl reload sshd
-bash: sysetmctl: command not found
[root@blog ~]# faillock --user test1
test1:
When                Type  Source                                           Valid
2026-02-06 11:31:05 RHOST 1x.xxx.x.x                                           V
2026-02-06 11:31:33 RHOST 1x.xxx.x.x                                           V
2026-02-06 11:31:55 RHOST 1x.xxx.x.x                                           V
[root@blog ~]# faillock --user test1 --reset
[root@blog ~]# faillock --user test1
test1:
When                Type  Source                                           Valid
[root@blog ~]#

 

댓글