I have a Virtualmin server with several virtualservers running on it. On one of those servers I created a new FTP user and tried logging in but what happens is that it gets connected and then immediately disconnected. In /var/logs/auth.log
I found this
Mar 18 15:53:29 primary sshd[5482]: Accepted password for ftp@domain.com from 112.196.159.229 port 13374 ssh2
Mar 18 15:53:29 primary sshd[5482]: pam_unix(sshd:session): session opened for user ftp@domain.com by (uid=0)
Mar 18 15:53:29 primary systemd: pam_unix(systemd-user:session): session opened for user domain by (uid=0)
Mar 18 15:53:30 primary systemd-logind[1022]: New session 9 of user domain.
Mar 18 15:53:30 primary sshd[5482]: pam_unix(sshd:session): session closed for user ftp@domain.com
Mar 18 15:53:30 primary systemd-logind[1022]: Removed session 9.
If I use the virtualserver login details (ones that are used to login at domain.com:10000) in ftp, it works fine. Also the root user also works fine. I tried creating ftp user on another Virtualserver and that had the same issue as well.