What were you trying to do that didn't work?
cat /etc/security/access.conf
+:username:127.0.0.1
-:ALL:ALL
[root@client1 etc]# ssh local_anuj@localhost
Password:
Connection closed by UNKNOWN port 65535 <----- Failed
[root@client1 etc]# ssh local_anuj@127.0.0.1
Password:
Activate the web console with: systemctl enable {}now cockpit.socket <{}---- success
This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register
Last failed login: Mon Jan 29 04:08:41 EST 2024 from ::1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Mon Jan 29 04:04:42 2024 from 127.0.0.1
[local_anuj@client1 ~]$ logout
Connection to 127.0.0.1 closed.
Please provide the package NVR for which bug is seen:
pam-1.5.1-18.el9
How reproducible:
Always