xshell连接到centOS,网络配置

来源:互联网 发布:广电网络投诉电话 编辑:程序博客网 时间:2024/06/05 20:41

xshell中连接:

Connecting to 127.0.0.1:22...

Could not connect to '127.0.0.1' (port 22): Connection failed.Type `help' to learn how to use Xshell prompt.

在虚拟机中的命令:


ping 127.0.0.1成功

注:Ctrl+c停止


解决办法:

ifup eth0

出现eth0,查看地址,配置xshell

--->完成

---------------------------------------------------------------开机自动启动网卡-------------------------------------------------------------

输入:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

按o编辑,讲onboot改为yes

esc退出

wq保存退出:wq


0 0
原创粉丝点击