I'm trying to use ppp over ssh as follows: # pppd passive pty "ssh -qtt remote.mine.nu pppd 192.168.10.1:192.168.10.2" The ssh process which is run as a child will try as a consequence of option -t will hang for ever in function enter_raw_mode / tcsetattr(fileno(stdin), TCSADRAIN, &tio) . I could avoid the problem with replacing TCSADRAIN with TCSANOW, not sure though what a proper fix would be for this.
I'm not sure I understand: does it hang because pppd is filling the pty buffer so it never drains?
Well I'm not sure, why it hangs at this point, but even if it is as you say filled by the local pppd there won't be anyone reading it on the other side, since the remote pppd is not yet started. So it's a dead-lock situation in that case. Let me know if you need any other info, or want me to perform some test.
I don't have any more insight into how to debug this than I did 15 years ago. If you still happen to be suffering from it then please reopen the bug and attach a debug trace from ssh (i.e. "ssh -vvv")
Closing all resolved bug with release of openssh-8.2