LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help about chroot with rssh - sftp (https://www.linuxquestions.org/questions/linux-newbie-8/help-about-chroot-with-rssh-sftp-730690/)

drakeman007 06-04-2009 11:49 AM

Help about chroot with rssh - sftp
 
Hello guys, can anyone help me please! i have installed openssh in my debian lenny, i follow the steps in this site
I did everything like the tutorial, but when i tried to connect via sftp i get this error after i put the password.

Code:

Couldn't read packet: Connection reset by peer
the user.log say this:

Code:

Jun  4 11:27:47 drake rssh[6126]: allowing sftp to all users
Jun  4 11:27:47 drake rssh[6126]: setting umask to 0770
Jun  4 11:27:47 drake rssh[6126]: chrooting all users to /home/ftp/
Jun  4 11:27:47 drake rssh[6126]: chroot cmd line: /usr/lib/rssh/rssh_chroot_helper 2 "/usr/lib/openssh/sftp-server"
Jun  4 11:27:47 drake rssh_chroot_helper[6126]: new session for ftp, UID=1001
Jun  4 11:27:47 drake rssh_chroot_helper[6126]: chroot() failed, 2: Operation not permitted

the auth.log say this
Code:

Jun  4 11:22:50 drake sshd[6058]: Accepted password for ftp from 192.168.1.33 port 57732 ssh2
Jun  4 11:22:50 drake sshd[6058]: pam_unix(sshd:session): session opened for user ftp by (uid=0)
Jun  4 11:22:50 drake sshd[6067]: subsystem request for sftp
Jun  4 11:22:50 drake sshd[6058]: pam_unix(sshd:session): session closed for user ftp

what could be the problem? i dont know what else i can do!! can anyone help me please?

Regards!

drakeman007 06-04-2009 11:04 PM

Any ideas please?


All times are GMT -5. The time now is 05:21 PM.