[SOLVED] PTY allocation request failed on channel 0 – CENTOS

by

in ,

Virtual Private Server

In order to get a terminal via ssh when this occurs, use

ssh user@host "/bin/bash -i"

My solution was

sbin/MAKEDEV -d /dev ptmx

I also went down the road of ensuring my fstab had a mount for /dev/pts

use “mount” to ensure this mount point exists. If it does not and it is not in your fstab add the line

none /dev/pts devpts defaults 0 0

Follow this to make sure mount point and device are ready.


rm -rf /dev/ptmx

mknod /dev/ptmx c 5 2

chmod 666 /dev/ptmx

umount /dev/pts

rm -rf /dev/pts

mkdir /dev/pts

mount /dev/pts

then use “mount -a” to reload the fstab.

restart ssh


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *