SFTP, SSHD, and UID Weirdness

Support for security such as Firewalls and securing linux
Post Reply
lostandfound
Posts: 2
Joined: 2015/06/17 08:50:26

SFTP, SSHD, and UID Weirdness

Post by lostandfound » 2018/04/26 17:28:02

(Sorry for the bad title, I cannot think of anything better at the moment!)

SFTP (Filezilla) was working normally until I changed the password.
After that it would only allow me to log in and view but not upload/download.
Initially I thought it was a permissions issue and then a PAM/UID error.
I still do not know the cause but the fix was to change the number of simultaneous connections.

Here are the the logs:

Code: Select all

#Log in

Apr 26 16:48:24 server sshd[40733]: Accepted password for root from 88.88.888.88 port 52771 ssh2
Apr 26 16:48:24 server sshd[40733]: pam_unix(sshd:session): session opened for user root by (uid=0)

#Failed Upload

Apr 26 16:49:02 server sshd[40974]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88.88.888.88  user=root
Apr 26 16:49:02 server sshd[40974]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Apr 26 16:49:05 server sshd[40974]: Failed password for root from 88.88.888.88 port 52783 ssh2
Apr 26 16:49:05 server sshd[40974]: error: Received disconnect from 88.88.888.88 port 52783:13: Unable to authenticate [preauth]
Apr 26 16:49:05 server sshd[40974]: Disconnected from 88.88.888.88 port 52783 [preauth]

#Successful Uploading file after simultaneous connections set to 1

Apr 26 17:40:30 server sshd[50128]: pam_unix(sshd:session): session closed for user root
Apr 26 17:40:31 server sshd[50370]: Accepted password for root from 88.88.888.88 port 54606 ssh2
Apr 26 17:40:31 server sshd[50370]: pam_unix(sshd:session): session opened for user root by (uid=0)
If anyone know what might be the root cause of this the please let me know.

Hopefully this saves someone the hours I wasted. :oops:

Post Reply