LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chroot with rssh sftp setup (https://www.linuxquestions.org/questions/linux-newbie-8/chroot-with-rssh-sftp-setup-4175415597/)

chenxiongni 07-08-2012 08:05 PM

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 http://www.cyberciti.biz/tips/howto-...ail-setup.html

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.

Andy


All times are GMT -5. The time now is 07:28 AM.