In my case, this was caused by a udev problem , there was no /dev/tty
device node.
The solution for me was just:
sudo mknod -m 666 /dev/tty c 5 0
then ssh is fine.
the root cause is system mounted read only by kinit
when changed to RW, the udev can create /dev/tty* automatically.