While trying to login to the VPS , if you are getting the error
Unable to open pty: No such file or directory
Please try the commands in the main node VPS.
vzctl exec VEID /sbin/MAKEDEV pty
vzctl exec VEID /sbin/MAKEDEV tty
This will fix your issue.
Above fix is a temporary fix. After this temporary fix, you can do the steps given below to have a permanent fix.
ReplyDeleteAfter entering your VPS, edit the file /etc/rc.sysinit and search for the line /sbin/start_udev and comment it.
vi /etc/rc.sysinit
#/sbin/start_udev
Then add the following two lines under /sbin/start_udev
#/sbin/start_udev
/sbin/MAKEDEV tty
/sbin/MAKEDEV pty
Then reboot your vps. This will fix your issue.
vi /etc/rc.sysinit