Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Unable to open pty: No such file or directory

Platonic | 0 comments

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.

Related Articles

Related

Serendipity eBook & Print edition

Serendipity eBook & Print edition

ಡಾ. ಕಿರ‌ಣ್ ಸೂರ್ಯ ಅವರು ಬರೆದಿರುವ ಸೆರೆಂಡಿಪಿಟಿ - ವೈದ್ಯಲೋಕದ ಅದ್ಭುತ ಆಕಸ್ಮಿಕಗಳು ಇ-ಪುಸ್ತಕ ಈಗಾಗಲೇ ಸಾವಿರಾರು ಜನರನ್ನು ಫೇಸ್‌ಬುಕ್, ಟ್ವಿಟರ್, ಇಂಟರ್ನೆಟ್ ಆರ್ಕೈವ್ ಮೂಲಕ ತಲುಪಿದೆ. ಇದರ ಮುದ್ರಿತ ಪ್ರತಿ ಪಡೆಯುವ ಇಚ್ಚೆ ವ್ಯಕ್ತಪಡಿಸಿರುವ ಓದುಗರಿಗೆ, ಕನ್ನಡದ ವಿಜ್ಞಾನ ಸಾಹಿತ್ಯದ ಒಂದು ಪ್ರಯೋಗವಾಗಿ ಹಲವಾರು...

read more