{"id":108,"date":"2012-07-07T09:49:00","date_gmt":"2012-07-07T09:49:00","guid":{"rendered":"http:\/\/www.milesweb.co.uk\/blog\/?p=108"},"modified":"2023-02-01T13:10:47","modified_gmt":"2023-02-01T13:10:47","slug":"unable-to-open-pty-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/blog\/hosting\/vps\/unable-to-open-pty-no-such-file-or-directory\/","title":{"rendered":"Unable to open pty: No such file or directory"},"content":{"rendered":"<p>The time you try login to the <a title=\"VPS\" href=\"https:\/\/www.milesweb.co.uk\/hosting\/vps-hosting\/\"><strong>VPS<\/strong><\/a> from the node it shows error below.<\/p>\n<blockquote><p><strong>Unable to open pty: No such file or directory<\/strong><\/p><\/blockquote>\n<p><span style=\"color: #888888;\">If you even try to access the VPS, via SSH, it will show error below<\/span><\/p>\n<blockquote><p><strong>PTY allocation request failed on channel 0<\/strong><\/p><\/blockquote>\n<p><span style=\"color: #888888;\">To fix this issue there are 2 alternatives. Use any one which suits you. Perform the commands below as root on your main node. <\/span><\/p>\n<p><span style=\"color: #888888; font-size: medium;\"><strong>Solution 1<\/strong><\/span><\/p>\n<p>vzctl exec veid \/sbin\/MAKEDEV pty<br \/>\nvzctl exec veid \/sbin\/MAKEDEV tty<br \/>\nvzctl enter veid<\/p>\n<p>Once set, use commands below.<\/p>\n<p>vzctl enter VEID<br \/>\nrpm -qa | grep -i udev<br \/>\nrpm -qf \/etc\/udev\/makedev.d\/50-udev.nodes<br \/>\nrpm -e &#8211;nodeps udev-095-14.9.el5<\/p>\n<p><strong><span style=\"font-size: medium;\">Solution 2<\/span><\/strong><\/p>\n<p><span style=\"font-size: small;\">Login to your main node and access file<\/span><\/p>\n<p>\/vz\/private\/VEID<span style=\"font-size: small;\">\/etc\/rc.sysinit<\/span><\/p>\n<p><span style=\"font-size: small;\">Find for start_udev, below this line add <\/span><\/p>\n<p>\/sbin\/MAKEDEV tty<br \/>\n\/sbin\/MAKEDEV pty<\/p>\n<p>Restart your VPS &amp; you are done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The time you try login to the VPS from the node it shows error below. Unable to open pty: No such file or directory If you even try to access the VPS, via SSH, it will show error below PTY allocation request failed on channel 0 To fix this issue there are 2 alternatives. Use&#8230; <a class=\"read-more\" href=\"https:\/\/www.milesweb.co.uk\/blog\/hosting\/vps\/unable-to-open-pty-no-such-file-or-directory\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[365],"tags":[31],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-vps","tag-virtuozzo-issue"],"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":7,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":13402,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/posts\/108\/revisions\/13402"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}