Link to home
Start Free TrialLog in
Avatar of Jim Riddles
Jim RiddlesFlag for United States of America

asked on

Trouble Adding sFTP Access on Ubuntu 18.04 Server

I'm trying to add sFTP access for a few individual customers.  I do not want them to have shell access.  I found an article here that works.  However, I need my Samba users to be able to access these files, as well, so I needed to change the home directory.  As soon as I did that, the user is no longer able to log in.

I'm nearly certain this is a permissions issue, but I can't seem to figure out where the problem is.
Avatar of David Favor
David Favor
Flag of United States of America image

If you have unlimited time, use VSFTPD or most other SFTP servers.

If you're looking for a zero config approach, do this...

apt-get install mysecureshell

# Answer yes to any question that occurs from this...
sftp-verif

Open in new window


And you're done. SFTP will now work for any /etc/passwd listed user, as expected... chrooted... nothing else todo...

Note: Some Distros provide a sftp_config with a Home setting, be sure to comment this out to use /etc/passwd home directories outside the /home directory hierarchy.
ASKER CERTIFIED SOLUTION
Avatar of Jim Riddles
Jim Riddles
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial