Can't connect using Jail SFTP account
Posted
by
Fazal
on Server Fault
See other posts from Server Fault
or by Fazal
Published on 2011-02-05T22:59:01Z
Indexed on
2011/02/05
23:27 UTC
Read the original article
Hit count: 343
I've been following this tutorial "Limiting Access with SFTP Jails on Debian and Ubuntu" and whilst I've had no errors setting it up, I've had issues on Ubuntu 10.04LTS logging in as a user on a virtualhost. I've changed my SSH port to 22022, and enter all the credentials when attempting to login.
I ran these commands to add a user to the virtualhost:
# useradd -d /srv/www/[domain] [username]
# passwd [username]
# usermod -G filetransfer [username]
# chown [username]:[username] /srv/www/[domain]/public_html
I should add that this is the only time I've setup the user they have no other /home directories or such. The directory that does exist is at /srv/www/example.com/public_html
When I try using a desktop package such as cyberduck to login to the site, I keep getting a "Login failed with this username or password". I am completely lost as what to do next...
The reason why I'm trying this method is because I want my clients to use SFTP and not FTP to upload files to their websites. Any help or direction is appreciated.
© Server Fault or respective owner