Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23018

Using "pam_access", ssh login fails with this entry in /etc/security/access.conf "+:username:127.0.0.1"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-8.10.z
    • rhel-8.9.0
    • pam
    • pam-1.3.1-35.el8_10
    • None
    • Low
    • rhel-sst-idm-sssd
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      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.3.1-32.el8 

      How reproducible:

      Always

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

              ipedrosa@redhat.com Iker Pedrosa
              aborah@redhat.com Anuj Borah
              Iker Pedrosa Iker Pedrosa
              Anuj Borah Anuj Borah
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: