PTY allocation request failed

Latest response

Problem: after vLAN change in one of vmware guest production system OS RHEL6.6_x64; unable to connect via ssh; also from the server desktop the terminal can not be open; no way to login to this server;

SSH ERROR

ssh root@10.xxx.xxx.xxx

root@10.xxx.xxx.xxx's password:
PTY allocation request failed on channel 0

from server desktop, right click for open terminal;

ERROR:
" There was an error creating the child process for this terminal"
"getpt failed: No such file or directory"

Responses

Solution:1

It seems to be a known issue on virtual servers...

root@unix900:~# /sbin/MAKEDEV tty
root@unix900:~# /sbin/MAKEDEV pty

If you don't have access to any shell, you could try sending the command via ssh :

gabriela@localmachine:~$ ssh root@unix900 "/sbin/MAKEDEV tty"
gabriela@localmachine:~$ ssh root@unix900 "/sbin/MAKEDEV pty"

Edited to reflect your comment :

If you use a chroot, you also have to mount /proc, /dev and /sys : root@unix900:/# mount -o bind /proc /repair/proc root@unix900:/# mount -o bind /dev /repair/dev root@unix900:/# mount -o bind /sys /repair/sys

It should work now.

Solution:2

if the server inaccessible, reboot to single user mode and

add these lines to your /etc/mtab & /etc/fstab and reboot the system none /dev/pts devpts defaults 0 0

Please share if anyone having any other solutions;

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.