connect: Network is unreachable

SecureCRT 连不上虚拟机了,第一反应当然是(是不是ssh断了?)

于是乎

[root@cdh1 system]# service sshd start
[root@cdh1 system]# sudo systemctl start ssh.service
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Failed to start ssh.service: Unit not found.

难受啊!谁又动什么东西了?顿时火冒三丈,突然想起来周末机房断过电,好吧好吧,那就这样吧!来本地ping一下IP,果然没通。

[root@cdh1 system]# /etc/init.d/network start
[root@cdh1 system]# connect: Network is unreachable

火气又大了,哼,这个centos7 怎么这样!难受

[root@cdh1 system]# cd /etc/init.d
[root@cdh1 system]# ./network start
[root@cdh1 system]# /usr/sbin/sshd
[root@cdh1 system]# ps -ef|grep ssh
root      1393     1  0 18:15 ?        00:00:00 /usr/sbin/sshd
root      1396  1393  0 18:16 ?        00:00:00 sshd: root@pts/0
root      1417  1398  0 18:24 pts/0    00:00:00 grep --color=auto ssh

    原文作者:Lisa
    原文地址: https://zhuanlan.zhihu.com/p/47568682
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞