Web lists-archives.com

Re: chroot jail for user with rssh





On 28.03.19 13:43, Peter Wiersig wrote:
> basti <mailinglist@xxxxxxxxxxxxxxxx> writes:
>> On 28.03.19 08:21, Peter Wiersig wrote:
>>> basti <mailinglist@xxxxxxxxxxxxxxxx> writes:
>> Try scp:
>>
>> /usr/sbin/sshd -d -p 2222
>>
>> 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 connection, without telling the server AFAIK.
> 
>> debug1: Received SIGCHLD.
>> debug1: session_by_pid: pid 12078
>> debug1: session_exit_message: session 0 channel 0 pid 12078
>> debug1: session_exit_message: release channel 0
>> Received disconnect from 2.206.185.146 port 45296:11: disconnected by user
>> Disconnected from 2.206.185.146 port 45296
>> ...
>> debug1: audit_event: unhandled event 12
> 
> that last line is a bit strange. Are your client/server programs
> compatible?
> 
> Peter
> 

It seem to be a problem with /usr/bin/rssh login shell. If the use has
/bin/bash it works fine. So i hope it is not possible to breaking out of
chroot jail.