Web lists-archives.com

Re: chroot jail for user with rssh




basti <mailinglist@xxxxxxxxxxxxxxxx> writes:

> sftp -vv user@xxxxxxxxxxx
> 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 user@xxxxxxxxxxx:/foo /tmp
> Transferred: sent 2508, received 2304 bytes, in 0.2 seconds
> Bytes per second: sent 15051.0, received 13826.7
> debug1: Exit status 255
> (...)
> I have no idea anymore whats wrong and how can I debug.

You can't debug such setups from the client side.

Have a look in /var/log/auth.log on the server and if that doesn't help:

a) if necessary modify the firewall
b) launch sshd on a different port with no backgrounding and debug
output
  => sshd -d -p 1234
c) retry above steps with the alternate port

Peter