CentOS联网

  1. 虚拟机那里选择NAT模式
  2. 用vi /etc/sysconfig/network-scripts/ifcfg-eth0进到网卡文件修改ONBOOT=yes。意思是启动网卡
    (注意在vi里,需要编辑时要按i,退出编辑模式按Esc,然后按:输入:wq就可以保存关闭了)
  3. 重启网络service network restart
  4. ifconfig查看IP地址
  5. 用xshell输入该地址就可以远程了 >>教程




如果远程连接不成功,请尝试以下方法:

关闭防火墙: chkconfig iptables off

启动SSH服务:service sshd start

设置开机运行:chkconfig sshd on

 

posted @ 2015-12-29 17:37  tinyphp  Views(380)  Comments(0Edit  收藏  举报