Xshell连接虚拟机linux操作系统

xshell远程连接虚拟机linux操作系统:
1.修改windows OS中的虚拟机的网卡配置
VMnet1代表仅主机模式;VMnet8代表NAT模式
2.配置linux OS的网卡配置:
编辑配置文件:vim /ect/sysconfig/network-scripts/ifcfg-eth0,更改onboot为yes;bootproto为none;IPADDR=192.168.150.3(与在VMnet的地址在同一个网络中);NETMAST=255.255.255.0
3.关闭防火墙,selinux等,重启网络服务:
service iptables stop
service ip6tables stop
service NetworkManager stop
执行过以上命令后,虚拟机右上角小电脑消失。

chkconfig iptables off
chkconfig ip6tables off
chkconfig NetworkManager off

关闭selinux:
getenforce//查看selinux  enforcing/permissive
setenforce 0 //更改selinux

service network restart//重启网络服务
ifconfig  查网卡信息//看到eth0的ip地址为修改后的ip地址


4.使用远程软甲xshell连接:
new->ip地址写虚拟机的IP地址
说明:xshell是Xmanager软件的一个组件,大家在网上下载并安装Xmanager才可以使用Xshell。

猜你喜欢

转载自blog.csdn.net/cigang/article/details/77963173