LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
chroot with rssh sftp setup


Hi All,

not sure why my last post not update in there. never mind.

May i please ask a question about chroot with rssh sftp setup.

i follow with: http://www.cyberciti.biz/tips/howto-...ail-setup.html

to setup everything i can. but when i try to sftp in it from another server,

i am getting enter pwd promote, and then after i enter password, connection closed.
--------------------
log shows:

Jul 9 10:02:52 grs-backend-1 rssh[27230]: allowing sftp to all users
Jul 9 10:02:52 grs-backend-1 rssh[27230]: setting umask to 022
Jul 9 10:02:52 grs-backend-1 rssh[27230]: line 53: configuring user username
Jul 9 10:02:52 grs-backend-1 rssh[27230]: setting username's umask to 011
Jul 9 10:02:52 grs-backend-1 rssh[27230]: allowing scp to user username
Jul 9 10:02:52 grs-backend-1 rssh[27230]: allowing sftp to user username
Jul 9 10:02:52 grs-backend-1 rssh[27230]: chrooting username to /home/username/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"
------------------

however, when i looking @ the log for the working username, it always has:



Jul 9 10:07:42 grs-backend-1 rssh[27266]: chroot cmd line: /usr/libexec/rssh_chroot_helper 1 "scp -t /home/workinguser"

which pint scp to chroot directory.

i have tried to Google it and no luck.

Any help will be really appreciate.

Thank you.

Andy
 
Old 07-10-2012, 09:53 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Your question is not that clear. What is the problem again? Are you saying chroot does not work?
 
  


Reply


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
chroot with rssh sftp setup chenxiongni Linux - Newbie 0 07-08-2012 08:05 PM
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
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


All times are GMT -5. The time now is 10:24 AM.

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