{"id":1456,"date":"2011-10-06T09:36:12","date_gmt":"2011-10-06T13:36:12","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1456"},"modified":"2013-03-20T08:44:20","modified_gmt":"2013-03-20T12:44:20","slug":"unable-to-start-ssh-devnull-is-not-a-character-device","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/unable-to-start-ssh-devnull-is-not-a-character-device","title":{"rendered":"Unable to start SSH: \/dev\/null is not a character device"},"content":{"rendered":"<p>The &#8220;<strong>\/dev\/null is not a character device<\/strong>&#8221; message occurs in a VPS when an upgrade is performed and the \/dev\/null turns into a regular file.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/etc\/init.d\/sshd restart<\/span>\r\n<span style=\"color: #0000ff;\">Restarting Secure Shell server: sshd failed!<\/span>\r\n<span style=\"color: #0000ff;\">\/dev\/null is not a character device!.<\/span><\/pre>\n<\/blockquote>\n<p>The \/dev\/null should be a character device as per the Linux standards. To fix the issue, remove the file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rm -f \/dev\/null<\/span><\/pre>\n<\/blockquote>\n<p>Create the character device<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mknod \/dev\/null c 1 3<\/span><\/pre>\n<\/blockquote>\n<p>The file should look like follows:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># ls -la \/dev\/null<\/span>\r\n<span style=\"color: #0000ff;\">crw-rw-rw- 1 root root 1, 3 Oct\u00a0 1 11:42 \/dev\/null<\/span><\/pre>\n<\/blockquote>\n<p>Now restart the sshd service<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/etc\/init.d\/sshd restart<\/span>\r\n<span style=\"color: #0000ff;\">Stopping sshd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 OK\u00a0 ]<\/span>\r\n<span style=\"color: #0000ff;\">Starting sshd:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 OK\u00a0 ]<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;\/dev\/null is not a character device&#8221; message occurs in a VPS when an upgrade is performed and the \/dev\/null turns into a regular file.<\/p>\n<p># \/etc\/init.d\/sshd restart<br \/>\nRestarting Secure Shell server: sshd failed!<br \/>\n\/dev\/null is not a character device!.<\/p>\n<p>The \/dev\/null should be a character device as per the Linux standards. To fix the issue, remove the file<\/p>\n<p># rm -f \/dev\/null<\/p>\n<p>Create the character device<\/p>\n<p># mknod \/dev\/null c 1 3<\/p>\n<p>The file should look like follows:<\/p>\n<p># ls -la \/dev\/null<br \/>\ncrw-rw-rw- 1 root root 1, 3 Oct\u00a0 1 11:42 \/dev\/null<\/p>\n<p>Now restart the sshd service<\/p>\n<p># \/etc\/init.d\/sshd [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1304,1303,1306,1307,1305],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1456"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1456"}],"version-history":[{"count":7,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions"}],"predecessor-version":[{"id":2285,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions\/2285"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}