Comments on: How to Restrict SFTP Users to Home Directories Using chroot Jail https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 21:00:06 +0000 hourly 1 By: nh https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1979379 Tue, 07 Mar 2023 21:32:10 +0000 http://www.tecmint.com/?p=18215#comment-1979379 Another case I couldn’t find anywhere…

How to set a separate directory entry when they log in with the above configuration all users are pointing to the same directory (whatever is mentioned in the chrootdirectory).

We have different clients logging into sftp and they need to be on different directory access.

]]>
By: Stephan https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1830510 Mon, 20 Jun 2022 18:35:22 +0000 http://www.tecmint.com/?p=18215#comment-1830510 Hmm,

All is well and good but when it comes to set:

ForceCommand internal-sftp‘ or ‘Match Group SFTP‘ (any of these!) and I restart ssh, I’m getting “Failed to start OpenBSD Secure Shell server“.

]]>
By: Ahmad https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1679211 Thu, 16 Dec 2021 09:41:37 +0000 http://www.tecmint.com/?p=18215#comment-1679211 Hi,

I have done all the steps above, but after i log in using:

# sfpt user@ip
# cd / 

I could see all the file systems!

]]>
By: Anonymous https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1603997 Wed, 06 Oct 2021 19:04:51 +0000 http://www.tecmint.com/?p=18215#comment-1603997 “adduser tecmint -g sftpgroup -s /sbin/nologin”

It is not working for me.

Even with this command:

usermod -G webdev danielm
--shell /sbin/false danielm

Error: FATAL ERROR: Connection reset by peer
Error: Could not connect to a server

Thats outdated i think.

]]>
By: Jarvis https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1593071 Wed, 22 Sep 2021 18:22:14 +0000 http://www.tecmint.com/?p=18215#comment-1593071 Good Article.

Have a question though, by doing the above steps, I see we could see the chroot jailed folder, after logging in. For a user, if he tries to log in, is it possible to show the complete path of the jailed folder, in this case, it would be, /sftpusers/chroot/tecmint/?

Also by doing chroot jail, we are restricting every user to access only the assigned folder. Is it possible to have an admin kind of user, who could access these folders, and download the files and remove them?

]]>