On a CentOS Linux 7.3.1611
I have VirtualMin installed. From the Edit Users
on the left I have created a new user with FTP access not to use the root account everywhere.
However, whenever I try to login via winSCP using both FTP & SFTP, I get either a username password error (case of SFTP) or getting a connection error (case of FTP)
Is this a common issue and how can I fix it?
Vsftpd will refuse to open a connection and return error 500 if the ftp root directory for the user which is attempting the connection is writeable. Below you can see a reasonable vsptd.conf which allows permission for local users.
So if we want user1 to be able to connect and his home folder is /home/user1 we must set:
To be able to work within the FTP directory we must create a couple separate folders with write permisions. i.e:
My /etc/vsftpd.conf
If your problem persists please use a different FTP client (like Filezilla) and post the exact error which is returned by your server.