Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-08-2012, 08:05 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 12

Rep: Reputation: Disabled
chroot with rssh sftp setup

Hi All,

May i please ask a question as i really stuck in there with no progress. sorry, if the question sounds too stupid to you.

I have a chroot jail setup for a user, e.g. named 'x'.

The folder structure is:

/home/x/chroot/, and has: "bin dev etc home l2chroot lib lib64 us " sub directories.

i follow with the web doc

about how to set it up step by step. however, when i try to connect it via sftp from another server, it gives my enter password promote, and then after that, i get: connection closed message.

if i check /var/log/message, i can see:

Jul 9 10:02:52 grs-backend-1 rssh[27230]: line 53: configuring user X
Jul 9 10:02:52 grs-backend-1 rssh[27230]: setting X's umask to 011
Jul 9 10:02:52 grs-backend-1 rssh[27230]: allowing scp to user X
Jul 9 10:02:52 grs-backend-1 rssh[27230]: allowing sftp to user X
Jul 9 10:02:52 grs-backend-1 rssh[27230]: chrooting gotalk_lnpnew to /home/X/chroot
Jul 9 10:02:52 grs-backend-1 rssh[27230]: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"


Log always end with that last part: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"

but when i looking @ some other working sftp setup on different server,
i can see log show:

chroot cmd line: /usr/libexec/rssh_chroot_helper 1 "chroot directory"

i have tried to search in Google with possible solution, but no luck.

Andy help would be really appreciate.

Please let me know if more info is required.

Thank you.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup SFTP chroot jail for some particular user. jeesun Linux - Security 1 08-09-2011 11:58 PM
Help about chroot with rssh - sftp drakeman007 Linux - Newbie 1 06-05-2009 12:04 AM
SFTP via rssh on Gentoo mcjules Linux - Software 0 01-15-2008 05:02 PM
RSSH with SFTP or some other alternative mattdyke Linux - Security 3 10-12-2006 02:21 PM
rssh/sftp chroot problem julz_51 Linux - Security 1 11-01-2005 04:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration