Programs run over ssh aren't getting real ttys.

Damien Miller djm at
Thu Nov 8 10:54:54 EST 2007

On Tue, 6 Nov 2007, James Supancic wrote:

> I did some strace'ing and found that sshd was using the BSD style
> method for creating a pty. After adding support for that to my Linux
> kernel (LEGACY_PTYS=y) it started working (I guess I took a version of
> sshd that used BSD style ptys and put it on a kernel that didn't
> support them... bad combination).

OpenSSH prefers to use the openpty(3) function to allocate PTYs, so
assuming this is being picked up on your system (check config.log) then
it is your libc that is using the legacy method underneath.


More information about the openssh-unix-dev mailing list