xshell连接到centOS,网络配置

    xiaoxiao2021-03-25  120

    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

    转载请注明原文地址: https://ju.6miu.com/read-20179.html

    最新回复(0)