<?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 Users to SCP and SFTP and Block SSH Shell Access with rssh</title> <atom:link href="http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Jay</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-171940</link> <dc:creator>Jay</dc:creator> <pubDate>Tue, 14 Jun 2011 16:26:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-171940</guid> <description>Look at the title of the article and then go away.</description> <content:encoded><![CDATA[<p>Look at the title of the article and then go away.</p> ]]></content:encoded> </item> <item><title>By: John Willis</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-170396</link> <dc:creator>John Willis</dc:creator> <pubDate>Thu, 31 Mar 2011 07:13:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-170396</guid> <description>addendum
the Tips above include a  &quot;chrootpath&quot; between the &quot;double&quot; slashes &quot;//&quot; but the comment posting system interpreted those due to html tag brackets as html and removed the &quot;left angel bracket&quot; chrootpath &quot;right angle bracket&quot;
just thought I&#039;d mention the &quot;double&quot; slashes were important to intepreting the Tips</description> <content:encoded><![CDATA[<p>addendum</p><p>the Tips above include a  &#8220;chrootpath&#8221; between the &#8220;double&#8221; slashes &#8220;//&#8221; but the comment posting system interpreted those due to html tag brackets as html and removed the &#8220;left angel bracket&#8221; chrootpath &#8220;right angle bracket&#8221;</p><p>just thought I&#8217;d mention the &#8220;double&#8221; slashes were important to intepreting the Tips</p> ]]></content:encoded> </item> <item><title>By: John Willis</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-170395</link> <dc:creator>John Willis</dc:creator> <pubDate>Thu, 31 Mar 2011 07:09:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-170395</guid> <description>I had a great deal of trouble getting this to work on RHEL 5.6 i386 until I discovered there was a permissions problem with several directories.
Tips
1. yum install rssh-2.3.2-1.2.el5.rf.i386.rpm and consider version locking, later versions seem broken
2. /etc/rssh.conf - uncomment #allowscp and #allowsftp and set the chrootpath =
3. chmod o+x the chrootpath
4. cd chrootpath
5. mkdir dev etc lib usr
6. chmod 755 *
7. mknod -m 666 //dev/null c 1 3
8. cp /etc/group /etc/passwd /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/nsswitch.conf  to //etc
9. cp the /lib ldd results to //lib
A. cd chrootpath/usr
B. mkdir lib libexec
C. chmod o+x *
D. cp the /usr/lib ldd results to //usr/lib
E. cp rssh_chroot_helper to //usr/libexec
F. chmod 655 rssh_chroot_helper
G. mkdir openssh
H. cp sftp-server //usr/libexec/openssh
I. chmod 755 sftp-server
Persistently the problems I ran into were (a) not copying /etc/group and /etc/passwd or leaving them empty.. they need at a minimum entries for root and the users that will sftp into the chrootpath (b) not realizing the importance of the o+x on the chrootpath and the directories holding the rssh_chroot_helper and sftp-server
I finally stumbled upon the issue by temporarily chmod -R 777 across the entire chrootpath on a test box and working the problem backwards once it was working, removing unnecessary things and permissions.
The debugging built into sshd and rssh were not very helpful, straces of the rssh shell and sftp-server were equally not useful in debugging the problem. The results of the straces seemed to indicate there were no problems accessing all files.
I suspect the logging would have been more helpful with a &quot;full&quot; duplicate of the operating system in the chroot instead of a minimal system, with the minimal resources the debug logging did not occur after chroot took place.</description> <content:encoded><![CDATA[<p>I had a great deal of trouble getting this to work on RHEL 5.6 i386 until I discovered there was a permissions problem with several directories.</p><p>Tips<br
/> 1. yum install rssh-2.3.2-1.2.el5.rf.i386.rpm and consider version locking, later versions seem broken<br
/> 2. /etc/rssh.conf &#8211; uncomment #allowscp and #allowsftp and set the chrootpath =<br
/> 3. chmod o+x the chrootpath<br
/> 4. cd chrootpath<br
/> 5. mkdir dev etc lib usr<br
/> 6. chmod 755 *<br
/> 7. mknod -m 666 //dev/null c 1 3<br
/> 8. cp /etc/group /etc/passwd /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/nsswitch.conf  to //etc<br
/> 9. cp the /lib ldd results to //lib<br
/> A. cd chrootpath/usr<br
/> B. mkdir lib libexec<br
/> C. chmod o+x *<br
/> D. cp the /usr/lib ldd results to //usr/lib<br
/> E. cp rssh_chroot_helper to //usr/libexec<br
/> F. chmod 655 rssh_chroot_helper<br
/> G. mkdir openssh<br
/> H. cp sftp-server //usr/libexec/openssh<br
/> I. chmod 755 sftp-server</p><p>Persistently the problems I ran into were (a) not copying /etc/group and /etc/passwd or leaving them empty.. they need at a minimum entries for root and the users that will sftp into the chrootpath (b) not realizing the importance of the o+x on the chrootpath and the directories holding the rssh_chroot_helper and sftp-server</p><p>I finally stumbled upon the issue by temporarily chmod -R 777 across the entire chrootpath on a test box and working the problem backwards once it was working, removing unnecessary things and permissions.</p><p>The debugging built into sshd and rssh were not very helpful, straces of the rssh shell and sftp-server were equally not useful in debugging the problem. The results of the straces seemed to indicate there were no problems accessing all files.</p><p>I suspect the logging would have been more helpful with a &#8220;full&#8221; duplicate of the operating system in the chroot instead of a minimal system, with the minimal resources the debug logging did not occur after chroot took place.</p> ]]></content:encoded> </item> <item><title>By: radiant_exitence</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-169939</link> <dc:creator>radiant_exitence</dc:creator> <pubDate>Thu, 17 Mar 2011 01:06:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-169939</guid> <description>Hi,
I hope someone can answer my question about scp and sftp in openSUSE 11.3. I tried to use internal sftpd and it was working ok but you cannot do scp with internal sftpd. Of course i also want to chroot users in jail which internal sftpd allows you to do but you cannot scp. Are there any instructions how to do it or some of you know how it is done</description> <content:encoded><![CDATA[<p>Hi,<br
/> I hope someone can answer my question about scp and sftp in openSUSE 11.3. I tried to use internal sftpd and it was working ok but you cannot do scp with internal sftpd. Of course i also want to chroot users in jail which internal sftpd allows you to do but you cannot scp. Are there any instructions how to do it or some of you know how it is done</p> ]]></content:encoded> </item> <item><title>By: paul</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-169406</link> <dc:creator>paul</dc:creator> <pubDate>Wed, 02 Mar 2011 06:05:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-169406</guid> <description>Does RSSH allow SSH tunnels?</description> <content:encoded><![CDATA[<p>Does RSSH allow SSH tunnels?</p> ]]></content:encoded> </item> <item><title>By: Venkatesh</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-158829</link> <dc:creator>Venkatesh</dc:creator> <pubDate>Thu, 12 Aug 2010 00:47:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-158829</guid> <description>Vivek:
I do not want the users to land on their respective user home directory for example, /users/vivek, instead I want them to land only on /users/vivek/data and not even be able to jump to /users/vivek. Where should we make the change, in the etc/passwd file?</description> <content:encoded><![CDATA[<p>Vivek:<br
/> I do not want the users to land on their respective user home directory for example, /users/vivek, instead I want them to land only on /users/vivek/data and not even be able to jump to /users/vivek. Where should we make the change, in the etc/passwd file?</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-156430</link> <dc:creator>Anonymous</dc:creator> <pubDate>Wed, 09 Jun 2010 17:01:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-156430</guid> <description>add it into /etc/shells</description> <content:encoded><![CDATA[<p>add it into /etc/shells</p> ]]></content:encoded> </item> <item><title>By: jeantoe</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-153925</link> <dc:creator>jeantoe</dc:creator> <pubDate>Thu, 25 Feb 2010 15:10:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-153925</guid> <description>hi ,when i try to ssh i got a message &quot;This account is restricted by rssh.
This user is locked out.If you believe this is in error, please contact your system administrator.&quot; how do i changeit ?
thank you</description> <content:encoded><![CDATA[<p>hi ,when i try to ssh i got a message &#8220;This account is restricted by rssh.<br
/> This user is locked out.If you believe this is in error, please contact your system administrator.&#8221; how do i changeit ?<br
/> thank you</p> ]]></content:encoded> </item> <item><title>By: jigs</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-151055</link> <dc:creator>jigs</dc:creator> <pubDate>Thu, 15 Oct 2009 00:17:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-151055</guid> <description>Hi, thanks for the article. It helped a lot.
But I have a requirement to allow internal transmissions using FTP  and using the same account. After I setup RSSH and change the shell on an SFTP/FTP account to RSSH, the user can no longer access the server via SSH, but only allows SFTP. But it also rejects FTP access. Is there a way around this...?</description> <content:encoded><![CDATA[<p>Hi, thanks for the article. It helped a lot.</p><p>But I have a requirement to allow internal transmissions using FTP  and using the same account. After I setup RSSH and change the shell on an SFTP/FTP account to RSSH, the user can no longer access the server via SSH, but only allows SFTP. But it also rejects FTP access. Is there a way around this&#8230;?</p> ]]></content:encoded> </item> <item><title>By: Hans Ruedi</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-150159</link> <dc:creator>Hans Ruedi</dc:creator> <pubDate>Sun, 16 Aug 2009 09:55:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-150159</guid> <description>I&#039;ve chrooted my SSH with this &lt;a href=&quot;http://www.cybnet.ch/misc/opensource/openssh-5.2p1-chroot.patch&quot; rel=&quot;nofollow&quot;&gt;patch&lt;/a&gt;. Works perfect for me. Maybe check that &lt;a href=&quot;http://www.cybnet.ch&quot; rel=&quot;nofollow&quot;&gt;page&lt;/a&gt; for other OpenSSH versions.</description> <content:encoded><![CDATA[<p>I&#8217;ve chrooted my SSH with this <a
href="http://www.cybnet.ch/misc/opensource/openssh-5.2p1-chroot.patch" rel="nofollow">patch</a>. Works perfect for me. Maybe check that <a
href="http://www.cybnet.ch" rel="nofollow">page</a> for other OpenSSH versions.</p> ]]></content:encoded> </item> <item><title>By: speller</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-148372</link> <dc:creator>speller</dc:creator> <pubDate>Thu, 30 Apr 2009 00:32:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-148372</guid> <description>Not sure what to download for Suse Enterprise?</description> <content:encoded><![CDATA[<p>Not sure what to download for Suse Enterprise?</p> ]]></content:encoded> </item> <item><title>By: Girish</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-148367</link> <dc:creator>Girish</dc:creator> <pubDate>Wed, 29 Apr 2009 15:59:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-148367</guid> <description>This is awesome! Thank you for posting this.
Girish</description> <content:encoded><![CDATA[<p>This is awesome! Thank you for posting this.</p><p>Girish</p> ]]></content:encoded> </item> <item><title>By: Webagentur</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-145492</link> <dc:creator>Webagentur</dc:creator> <pubDate>Wed, 05 Nov 2008 15:28:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-145492</guid> <description>Why install this rssh?</description> <content:encoded><![CDATA[<p>Why install this rssh?</p> ]]></content:encoded> </item> <item><title>By: khurram</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-144166</link> <dc:creator>khurram</dc:creator> <pubDate>Wed, 25 Jun 2008 16:53:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-144166</guid> <description>Hi Vivic,
Thank a lot, I a have installed the SFTP server using the above procedure. Now i want that users can  login using there public and private key pairs instead of passwords.Is it possible? can any one help me please. Thanks.</description> <content:encoded><![CDATA[<p>Hi Vivic,</p><p>Thank a lot, I a have installed the SFTP server using the above procedure. Now i want that users can  login using there public and private key pairs instead of passwords.Is it possible? can any one help me please. Thanks.</p> ]]></content:encoded> </item> <item><title>By: FreeMa</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142594</link> <dc:creator>FreeMa</dc:creator> <pubDate>Tue, 22 Jan 2008 15:22:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142594</guid> <description>For those using Ubuntu (tested on Gutsy 7.10), I suggest that you follow these instructions:
http://geekzine.org/2007/09/28/easy-sftp-and-chroot-sftp-with-scponly/
FreeMa</description> <content:encoded><![CDATA[<p>For those using Ubuntu (tested on Gutsy 7.10), I suggest that you follow these instructions:</p><p><a
href="http://geekzine.org/2007/09/28/easy-sftp-and-chroot-sftp-with-scponly/" rel="nofollow">http://geekzine.org/2007/09/28/easy-sftp-and-chroot-sftp-with-scponly/</a></p><p>FreeMa</p> ]]></content:encoded> </item> <item><title>By: Christoph Langner</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142351</link> <dc:creator>Christoph Langner</dc:creator> <pubDate>Fri, 04 Jan 2008 00:19:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142351</guid> <description>The developer of rssh quit the development of rssh two years ago. I wouldn&#039;t recommend to use rssh since security issues won&#039;t be fixed. Better use scponly...</description> <content:encoded><![CDATA[<p>The developer of rssh quit the development of rssh two years ago. I wouldn&#8217;t recommend to use rssh since security issues won&#8217;t be fixed. Better use scponly&#8230;</p> ]]></content:encoded> </item> <item><title>By: J.P. Pasnak</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142335</link> <dc:creator>J.P. Pasnak</dc:creator> <pubDate>Wed, 02 Jan 2008 21:52:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142335</guid> <description>As a note, rssh is available in Mandriva Contribs (for 2008 and Cooker at least). So &#039;urpmi rssh&#039; should work fine.</description> <content:encoded><![CDATA[<p>As a note, rssh is available in Mandriva Contribs (for 2008 and Cooker at least). So &#8216;urpmi rssh&#8217; should work fine.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142334</link> <dc:creator>vivek</dc:creator> <pubDate>Wed, 02 Jan 2008 20:58:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142334</guid> <description>john,
The procedure is same for Suse Linux, just download and install rpm file</description> <content:encoded><![CDATA[<p>john,</p><p>The procedure is same for Suse Linux, just download and install rpm file</p> ]]></content:encoded> </item> <item><title>By: john</title><link>http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142333</link> <dc:creator>john</dc:creator> <pubDate>Wed, 02 Jan 2008 20:45:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html#comment-142333</guid> <description>How about a suse procedure?</description> <content:encoded><![CDATA[<p>How about a suse procedure?</p> ]]></content:encoded> </item> </channel> </rss>
