Server Refused To Allocate Pty
Today when I logged into my VPS server using SSH, I get this werid error “Server refused to allocate pty” and Unable to open pty: No such file or directory
This problem was caused by “yum install“. Some mount point for /dev is killed by yum install.
To solve this problem in your Virtual Private Server, simply run these two commands using your web admin:
/sbin/MAKEDEV pty
/sbin/MAKEDEV tty
The MAKEDEV commands created a lot of additional devices under /dev. After running these commands I was allowed to login via SSH again.
For those having a similar problem can use the above solution.
Good luck:)
Popularity: 7%



