sshd[3167]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"

 sshd[3167]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"

Root login to remote server in ssh fails with the above message in /var/log/secure.

To resolve the issue, ensure that "permit root login" is set to "yes" in sshd configuration file.

 

[root@remote_server ~]# tail -f /var/log/secure

 

Apr 27 13:41:29 otp sshd[3384]: pam_unix(sshd:session): session closed for user root

 

Apr 27 13:41:32 otp sshd[3403]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.29.43  user=root

 

Apr 27 13:41:32 otp sshd[3403]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"

 

Apr 27 13:41:34 otp sshd[3401]: error: PAM: Authentication failure for root from 192.168.29.43

 

Apr 27 13:41:34 otp sshd[3401]: Received disconnect from 192.168.29.43 port 50064:11: Auth failed [preauth]

 

Apr 27 13:41:34 otp sshd[3401]: Disconnected from 192.168.29.43 port 50064 [preauth]

 

[root@remote_server ~]# vi /etc/ssh/sshd_config

PermitRootLogin yes 

[root@remote_server ~]# service sshd restart 

 

To enable root login from a IP, use the following syntax in /etc/ssh/sshd_config.
 
Match host localhost
       PermitRootLogin yes
       PubkeyAuthentication yes
       PasswordAuthentication yes
 
Match Address 192.168.29.74
       PermitRootLogin yes
       PubkeyAuthentication yes
       PasswordAuthentication no 
5 (1)
Article Rating (1 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Primary node showing the public ip instead of lan ip when cluster is configured
    Viewed 1034 times since Wed, Nov 21, 2018
    Unknown cipher in list: TLSv1 SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    Viewed 7035 times since Thu, Feb 15, 2018
    ssh session slow and not responsive
    Viewed 2882 times since Thu, Jun 15, 2017
    UnAuthorized IP Address when using proxy
    Viewed 443 times since Mon, Jun 1, 2020
    An error occurred. Please contact administrator.Connection to server.hostname closed.
    Viewed 2493 times since Wed, Jun 14, 2017
    The IP field must contain a valid public IP or how to install Ezeelogin on a machine in lan
    Viewed 4144 times since Wed, Jun 14, 2017
    Unable to add server into Ezeelogin via webinterface. Password error, times out
    Viewed 2461 times since Wed, Jun 14, 2017
    vi editor not working , insert and delete not working in ssh
    Viewed 3332 times since Wed, Jun 14, 2017
    404 error on login with nginx
    Viewed 3915 times since Wed, Jun 14, 2017
    Google 2 factor authentication fails randomly
    Viewed 2332 times since Wed, Jun 14, 2017