版权声明:一起学习一起进步。如果正好对你有帮助的话,很开心 https://blog.csdn.net/wang0112233/article/details/84033281
我是通过VMware Workstation Pro 连接的公司服务器,然后开始创建虚拟机
然后就创建了一个Ubuntu系统的虚拟机
首先,查看是否有网络,开始安装ssh服务,这样就可以连接xshell远程操作
安装openssh-server。
直接输入命令:
sudo apt-get install openssh-server
输入y确认下载,并等待安装完成
检查是否安装成功
sudo ps -e |grep ssh
开启ssh服务
sudo service ssh start
(要在有网络的状态下!!)
1.可以通过命令行来修改ip
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address ip
gateway 网关
netmask 255.255.255.0
保存,重启reboot
2可以通过可视化界面修改
填写自己的ip。掩码,网关,dns可以参考下原有虚拟机的,或者可以试试(114.114.114.114/8.8.8.8)