You are not logged in.
I have a system that I can't ssh into anymore.
SSH fails with the following error being logged by sshd:
sshd[826]: error: openpty: No such file or directory
sshd[826]: error: session_pty_req: session 0 alloc failed
/dev/pts is mounted according to mount:
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
but it is empty. Should it be empty?
/dev/ptmx also exists.
What do I have to look at to debug this?
I already tried running sshd in debug mode (-Dddd) but it just outputs the same error message.
Last edited by Malstrond (2020-05-20 17:12:03)
Offline
I have the same problem and I have a work around:
ssh <servername> "/bin/bash -i"
mount -t devpts devpts /dev/pts
exit
ssh <servername> and fault is gone.
But after a reboot the problem is back.
Why, I don't know and I also do have a real solution.
Last edited by fvsc (2020-05-06 14:33:09)
Offline
Solved on my end.
The root cause was this dhcpcd bug for me. Switching to another DHCP client solved it.
Last edited by Malstrond (2020-05-18 17:21:04)
Offline
Glad you found a workaround*, please prepend [workedaround] to the topic title.
*
I'm suggesting workedaround instead of solved as https://bugs.archlinux.org/task/66405 suggests the root cause is NOT upstream dhcpcd.
Last edited by Lone_Wolf (2020-05-19 10:09:33)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I downgraded dhcpcd 9.0.2-1 to dhcpcd 8.1.7-1 and the problem is solved.
Offline
A real fix instead of downgrading is double checking that you do not have multiple daemons spawned for the same network controller, in practice this often means that you have both the dhcpcd and the dhcpcd@interface.service enabled, while you should only have one of the two. It's not entirely clear why this situation lead to this fall out, but this situation has always been warned against and is known to lead to undefined behaviour
Offline
dhcpcd.service is disabled
dhcpcd@enp3s0.service is enabled and is started
dhcpcd@enp4s0.service is enabled but timed out and Failed to start dhcpcd on enp4s0 which is OK because no network cable connected
I have disabled dhcpcd@enp4s0.service (with no network cable)
Upgraded to dhcpcd 9.0.2-1
Booted and problem solved.
Thanks for the hint.
Offline