Problem with use rssh
Brought to you by:
xystrus
From: <lpi...@ka...> - 2004-04-02 10:21:55
|
Hi all, I'm new in this group but welcome everybody. I try to compile, configure and use rssh. I read CHROOT files and configure my system. When I try to use sftp from other system I see message: debian:~# sftp test@192.168.1.1 Connecting to 192.168.1.1... test@192.168.1.1's password: Connection closed debian:~# I couldn't login to debian system. Could you help me and tell me what I did wrong? When I configured system (after read CHROOT file) I did I configure /usr/local/etc/rssh file What do I change? 1. Uncommented allowscp allowsftp 2. Change line: chrootpath="/usr/sbin/chroot /usr/chroot/" 1. Create new user test. In /etc/passwd I have line: test:x:1010:1010:,,,:/usr/chroot:/usr/local/bin/rssh 2. mkdir /usr/chroot 3. mkdir /usr/chroot/lib /usr/chroot/etc/ /usr/chroot/local/bin/ 4. cp -r /lib/* /usr/chroot/ 5. cp /usr/bin/scp /usr/chroot/usr/bin/scp 6. cp /usr/bin/sftp-server /usr/chroot/usr/bin/sftp-server 7. cp /usr/local/bin/rssh /usr/chroot/usr/local/bin/rssh 8. cp /usr/local/etc/rssh /usr/chroot/usr/local/etc/rssh 9. cp /etc/ld* /usr/chroot/etc/ 10. cp /etc/passwd /usr/chroot/etc/ 11. cp -r /etc/ssh* /usr/chroot/ 12. cp /usr/lib/lib* /usr/chroot/usr/lib/ And all, |