Re: chroot jail for user with rssh

2019-03-28 Thread basti
On 28.03.19 13:43, Peter Wiersig wrote: > basti writes: >> On 28.03.19 08:21, Peter Wiersig wrote: >>> basti writes: >> Try scp: >> >> /usr/sbin/sshd -d -p >> >> Starting session: command for alice from 2.206.185.146 port 45296 id 0 > > So that reads as if all is fine, but then the next

Re: chroot jail for user with rssh

2019-03-28 Thread Peter Wiersig
basti writes: > On 28.03.19 08:21, Peter Wiersig wrote: >> basti writes: > Try scp: > > /usr/sbin/sshd -d -p > > Starting session: command for alice from 2.206.185.146 port 45296 id 0 So that reads as if all is fine, but then the next line indicates that the client has terminated the connec

Re: chroot jail for user with rssh

2019-03-28 Thread basti
On 28.03.19 12:15, wrote: > Did you use Russ' supplied script > /usr/share/doc/rss/examples/mkchroot.sh to create that environment? > > My contents after that script look quite different to your presented > files. > > Did you act on the logging notice after using the script, so that the > syslo

Re: chroot jail for user with rssh

2019-03-28 Thread Peter Wiersig
basti writes: > > Files inside chroot: > > /home/user# find ./ > ./ > ./bin > ./bin/ls > ./bin/date > ./bin/bash > ./.ssh > ./.ssh/authorized_keys > ./lib > ./lib/x86_64-linux-gnu > ./lib/x86_64-linux-gnu/libattr.so.1 > ./lib/x86_64-linux-gnu/libncurses.so.5 > ./lib/x86_64-linux-gnu/librt.so.1 > .

Re: chroot jail for user with rssh

2019-03-28 Thread basti
On 28.03.19 08:21, Peter Wiersig wrote: > basti writes: > >> sftp -vv u...@example.com >> Transferred: sent 2508, received 2260 bytes, in 0.2 seconds >> Bytes per second: sent 15924.1, received 14349.5 >> debug1: Exit status 1 >> Connection closed >> >> >> scp -vv u...@example.com:/foo /tmp >> Tr

Re: chroot jail for user with rssh

2019-03-28 Thread Peter Wiersig
basti writes: > sftp -vv u...@example.com > Transferred: sent 2508, received 2260 bytes, in 0.2 seconds > Bytes per second: sent 15924.1, received 14349.5 > debug1: Exit status 1 > Connection closed > > > scp -vv u...@example.com:/foo /tmp > Transferred: sent 2508, received 2304 bytes, in 0.2 sec

chroot jail for user with rssh

2019-03-27 Thread basti
hello, i try ro setup a chroot jail with rssh. the jail seem to work if I set /bin/bash as shell. (I get a prompt and can ls inside chroot) When I set /usr/bin/rssh as login shell i get: ssh u...@example.com This account is restricted by rssh. Allowed commands: scp sftp rsync sftp -vv u...@exam