Unable to access the VPS via SSH? Are you getting the following error?
# vzctl enter 1022
enter into VE 1022 failed
Unable to open pty: No such file or directory
Fix:
# vzctl exec 1022 /sbin/MAKEDEV pty
# vzctl exec 1022 /sbin/MAKEDEV tty
# vzctl enter 1022
To Fix this issue permanently,
1. Edit the file /etc/rc.sysinit of the VPS server (Here VEID of the VPS server is 1022)
2. Comment the line
#/sbin/start_udev
3. Add the following lines after /sbin/start_udev:
/sbin/MAKEDEV tty
/sbin/MAKEDEV pty
4. Reboot your VPS
vzctl restart 1022
Note: Do ensure that this is checked when you run yum/up2date on server.
October 28th, 2008 at 4:21 am
this fix worked out great for me…thanks for the help.
December 7th, 2008 at 6:48 am
Glad it helped me out
http://www.eukhost.com/forums/f29/vps-unable-open-pty-no-such-file-directory-2666/#post44314