Ssh, error: openpty: No such file or directory

From Andreida
Revision as of 11:50, 16 February 2016 by Andreas (talk | contribs) (Created page with "if you get the error PTY allocation request failed on channel 0 stdin: is not a tty and in your auth.log is written: error: openpty: No such file or directory error: sess...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

if you get the error

PTY allocation request failed on channel 0
stdin: is not a tty

and in your auth.log is written:

error: openpty: No such file or directory
error: session_pty_req: session 0 alloc failed
  • try the following, but always first check, if the step is already done:
mknod /dev/ptmx c 5 2
chmod 666 /dev/ptmx
mkdir /dev/pts
  • Add to /etc/fstab:
none            /dev/pts        devpts        gid=5,mode=620    0 0
  • Mount /dev/pts
mount /dev/pts

I got this from http://www.linuxweblog.com/blogs/sandip/20090926/unable-open-pty-no-such-file-or-directory