ls hangs in internal-sftp for LDAP users

mh at mh at
Fri May 12 20:06:14 AEST 2017

I'm using 7.2p2-4ubuntu2.1

I have the same exact problem as described in the first comment in

Initially, my ldap server hostname and IP is only in /etc/hosts, not in
the configured resolver. I can't use the real IP as a workaround in
ldap.conf because of the TLS configuration which cares about the hostname.

At the time I add the host name and IP in the resolver, the issue goes away.

So, I'm a bit worried to be forced to declare a record in my DNS to
enable SFTP listing ? There should be another way isn't ?

I also tried to copy /etc/hosts to etc/hosts in the folder specified by
ChrootDirectory directive with no more success.

Notice : it happens only for ldap users, not local users

Any help welcome,


More information about the openssh-unix-dev mailing list