Re: AIX SFTP with chroot : conection closed without error message

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Excuse me, I did a "ssh user@host" instead of "sftp user@host". That's why it tried to open a tty.




So I tried again with SFTP and I got nothing more :'(

debug1: session_input_channel_req: session 0 req subsystem
debug2: subsystem request for sftp by user cpdp
debug1: subsystem: internal-sftp
Starting session: subsystem 'sftp' for cpdp from 10.1.0.161 port 50442
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug2: fd 9 setting O_NONBLOCK
debug2: fd 8 setting O_NONBLOCK
debug2: fd 11 setting O_NONBLOCK
debug2: channel 0: read<=0 rfd 9 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: read 83 from efd 11
debug3: channel 0: discard efd
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
debug2: notify_done: reading
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 66584
debug1: session_exit_message: session 0 channel 0 pid 66584
debug2: channel 0: request exit-status confirm 0
debug1: session_exit_message: release channel 0
debug2: channel 0: write failed
debug2: channel 0: close_write
debug2: channel 0: send eow
debug2: channel 0: output open -> closed
debug2: channel 0: read 0 from efd 11
debug2: channel 0: closing read-efd 11
debug2: channel 0: send close
debug3: channel 0: will not send data after close
debug3: channel 0: will not send data after close
debug2: channel 0: rcvd close
Received disconnect from 10.1.0.161: 11: disconnected by user
debug1: do_cleanup
debug3: mm_request_receive entering
debug1: do_cleanup


Thierry


<http://www.infass.com>

Le 01/04/2014 09:50, Thierry CHARLES a écrit :
I didn't know that I can have different logging level in the sftp process. thanks for the tip

I have tried and there is some information : sftp cannot allocate a tty !

The logs :

Starting session: forced-command (config) 'internal-sftp' on pts/11 for cpdp from 10.1.0.161 port 50336
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: channel 0: rfd 9 isatty
debug2: fd 9 setting O_NONBLOCK
/dev/pts/11: No such file or directory
debug3: fd 7 is O_NONBLOCK
open /dev/tty failed - could not set controlling tty: No such file or directory


looks like it requires having a duplicate environment inside the chroot :-(

Is there a way to avoid /dev duplication ?
If not, does anyone know how to do it ?

Thanks,
Thierry

*Thierry CHARLES*
Infass Systèmes <http://www.infass.com>

Le 01/04/2014 05:55, Damien Miller a écrit :
Adding some debug flags to your sshd_config Subsystem declaration might
elicit a little more information, e.g.

Subsystem      sftp    internal-sftp -l debug3



_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

begin:vcard
fn:Thierry CHARLES
n:CHARLES;Thierry
org;quoted-printable:Infass Syst=C3=A8mes
adr:;;26 rue Henri Barbusse;TOURS;;37000;FRANCE
email;internet:t.charles@xxxxxxxxxx
tel;work:(+33) 2.47.38.20.50
x-mozilla-html:TRUE
url:http://www.infass.com
version:2.1
end:vcard

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux