解决 /dev/null is not a character device! 问题
2013-05-11 11:50
681 查看
昨天我们一个客户无法 ssh 到他的 VPS,但是可以 ping 通。从控制台上看没有异常,登陆进去后发现 ssh 服务没有启动,企图启动(重启)这个服务时报错 /dev/null is not a character device!:
# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd failed! /dev/null is not a character device!.解决办法是,删除 /dev/null 后重建一个字符设备:
# rm -f /dev/null # mknod /dev/null c 1 3然后启动(重启)ssh 就可以了:
# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd.
相关文章推荐
- Chrome下解决本地异步请求失败的问题(Origin null is not allowed by Access-Control-Allow-Origin. )
- “this._postbackSettings.async is null or not an object”问题的解决
- mysql报错问题解决Character set 'utf8mb4' is not a compiled character set
- error: device unauthorized.This adb server's $ADB_VENDOR_KEYS is not set 问题的解决
- 解决linux下chrome NVIDIA: could not open the device file /dev/nvidia0 Operation not permitted 问题
- 关于“device "eth0" does not seem to be present, delaying initialization“问题的解决
- J2ee is not mapped问题解决
- 问题解决[<UIViewController 0x8430220>setValue:forUndefinedKey:]this class is not key value..
- 解决eclipse中web项目出现Project facet Java version 1.8 is not supported.的问题
- 关于Servlet报错:405 HTTP method GET is not supported by this URL问题解决方法
- 解决问题:maven3.3.1 的-Dmaven.multiModuleProjectDirectory system propery is not set
- VMWare的The network bridge on device VMnet0 is not running故障解决
- The word is not correctly spelled问题解决
- iOS \'The sandbox is not sync with the Podfile.lock\'问题解决
- Unable to add module to the current project as it is not of packaging type 'pom' 问题解决
- 彻底解决$ is not define,不止是顺序问题
- 【问题解决】Project facet Java version 1.7 is not supported.
- 解决php的“It is not safe to rely on the system’s timezone settings”问题
- [置顶] CocoaPods安装库时出现问题:The dependency `OpenCV (~> 3.0.0)` is not used in any concrete target的解决
- ClientException: Path is not a working copy directory问题解决办法