Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to configure vsftpd on my vps in order to access SFTP from Transmit/FileZilla. I've opted for SFTP and the OpenSSL is configured, but I can't seem to manage to add a new user only for FTP-accessing and restrict it for the /home directory only.

Thus, the /home is where I keep my WWW server files and I want a new user to have full access to that directory (chroot).

vsftpd is now capable of allowing the root user to access ftp, but I want to restrict that only for a specific username to allow SFTP accessing.

Some info from vsftpd.conf:



chroot_list was the file where I added my user "max" to access FTP, but I've removed the user after multiple times where I tried to have it accessing the SFTP.

vsftpd allows a new user to login, but fails when inserting the password. root is ok.

Also, is there any changes to allow specific IP-address to access SFTP?

Thank you.

share|improve this question
Can you post the exact error message you are getting as an edit to your post? – Iain Mar 3 '11 at 10:50

Sorry but it looks like you are confusing the protocols. I.e. SFTP and FTPS. SFTP is for SSH FTPS is used for and by the FTP server.

If you really want to lock the user down. Add /usr/sbin/nologin /etc/shells (this will stop SSH access) Add your user 'max' to /etc/vsftpd/chroot_list

Configure your filezilla to use FTPS

share|improve this answer
SFTP=SSH, SCP, RSYNC over SSH FTPS=FTP+TLS/SSL – dmourati Apr 20 '11 at 6:06

To get sftp chroot working you could forget about vsftpd and just configure openssh to do that -

share|improve this answer
The guy's on Centos 5. It never got past OpenSSH 4.3. Per the cited article, sftp features were not added to OpenSSH until 4.9. – Steve Nov 28 '15 at 2:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.