<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Restrict SFTP Users to Home Directories Using chroot Jail	</title>
	<atom:link href="https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 21:00:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: nh		</title>
		<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1979379</link>

		<dc:creator><![CDATA[nh]]></dc:creator>
		<pubDate>Tue, 07 Mar 2023 21:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18215#comment-1979379</guid>

					<description><![CDATA[Another case I couldn&#039;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.]]></description>
			<content:encoded><![CDATA[<p>Another case I couldn&#8217;t find anywhere&#8230;</p>
<p>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). </p>
<p>We have different clients logging into sftp and they need to be on different directory access.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stephan		</title>
		<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1830510</link>

		<dc:creator><![CDATA[Stephan]]></dc:creator>
		<pubDate>Mon, 20 Jun 2022 18:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18215#comment-1830510</guid>

					<description><![CDATA[Hmm,

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

&#039;&lt;strong&gt;ForceCommand internal-sftp&lt;/strong&gt;&#039; or &#039;&lt;strong&gt;Match Group SFTP&lt;/strong&gt;&#039; (any of these!) and I restart ssh, I&#039;m getting &quot;&lt;strong&gt;Failed to start OpenBSD Secure Shell server&lt;/strong&gt;&quot;.]]></description>
			<content:encoded><![CDATA[<p>Hmm,</p>
<p>All is well and good but when it comes to set:</p>
<p>&#8216;<strong>ForceCommand internal-sftp</strong>&#8216; or &#8216;<strong>Match Group SFTP</strong>&#8216; (any of these!) and I restart ssh, I&#8217;m getting &#8220;<strong>Failed to start OpenBSD Secure Shell server</strong>&#8220;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ahmad		</title>
		<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1679211</link>

		<dc:creator><![CDATA[Ahmad]]></dc:creator>
		<pubDate>Thu, 16 Dec 2021 09:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18215#comment-1679211</guid>

					<description><![CDATA[Hi,

I have done all the steps above, but after i log in using:
&lt;pre&gt;
# sfpt user@ip
# cd / 
&lt;/pre&gt;
I could see all the file systems!]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I have done all the steps above, but after i log in using:</p>
<pre>
# sfpt user@ip
# cd / 
</pre>
<p>I could see all the file systems!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anonymous		</title>
		<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1603997</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Wed, 06 Oct 2021 19:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18215#comment-1603997</guid>

					<description><![CDATA[&quot;adduser tecmint -g sftpgroup -s /sbin/nologin&quot;

It is not working for me.

Even with this command:
&lt;pre&gt;
usermod -G webdev danielm
--shell /sbin/false danielm
&lt;/pre&gt;
Error:	FATAL ERROR: Connection reset by peer
Error:	Could not connect to a server

Thats outdated i think.]]></description>
			<content:encoded><![CDATA[<p>&#8220;adduser tecmint -g sftpgroup -s /sbin/nologin&#8221;</p>
<p>It is not working for me.</p>
<p>Even with this command:</p>
<pre>
usermod -G webdev danielm
--shell /sbin/false danielm
</pre>
<p>Error:	FATAL ERROR: Connection reset by peer<br />
Error:	Could not connect to a server</p>
<p>Thats outdated i think.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jarvis		</title>
		<link>https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/comment-page-1/#comment-1593071</link>

		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Wed, 22 Sep 2021 18:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18215#comment-1593071</guid>

					<description><![CDATA[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, &lt;strong&gt;/sftpusers/chroot/tecmint/&lt;/strong&gt;?

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?]]></description>
			<content:encoded><![CDATA[<p>Good Article.</p>
<p>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, <strong>/sftpusers/chroot/tecmint/</strong>?</p>
<p>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?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
