AIX SFTP with chroot : conection closed without error message

Thierry CHARLES t.charles at
Tue Apr 1 18:50:48 EST 2014

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 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 

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 ?


*Thierry CHARLES*
Infass Systèmes <>

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t_charles.vcf
Type: text/x-vcard
Size: 273 bytes
Desc: not available
URL: <>

More information about the openssh-unix-dev mailing list