vmware虚拟机安装ubuntu的server版本后,安装ssh和ssh协议
可以先用apt-cache search ssh这种方式查看一下
apt-get install openssh-server
apt-get install ssh
安装后可用dpkg -l|grep ssh

安装用可以使用service ssh restart 这种方式重启ssh协议


NAT结合DHCP方式(可以直接在本机没有局域网时登陆,这种方式不需要任何路由器,在单机情况下即可连通vmware里的ubuntu,最佳方案)
在Eidt -> virtual network editor中设置如下(此为全局设置)

虚拟机安装ubuntu,然后用SecureCRT的SSH登陆

虚拟机安装ubuntu,然后用SecureCRT的SSH登陆

在ubuntu的Vm -> Settings里设置如下


虚拟机安装ubuntu,然后用SecureCRT的SSH登陆

启动ubuntu,vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inetdhcp
auto eth0
iface eth0 inetdhcp
#address 192.168.0.103
#gateway 192.168.0.1
#netmask 255.255.255.0

最后重启ubuntu网卡
/etc/init.d/networking restart

用ifconfig查看ip可以看到DHCP设置的IP就是那个228网段的


虚拟机安装ubuntu,然后用SecureCRT的SSH登陆

转载于:https://blog.51cto.com/lonelyprogram/1355260

相关文章:

  • 2021-03-30
  • 2021-08-06
  • 2021-12-03
  • 2021-08-04
  • 2022-12-23
  • 2021-09-29
  • 2021-12-30
  • 2021-12-13
猜你喜欢
  • 2021-11-28
  • 2021-06-05
  • 2022-12-23
  • 2022-01-16
  • 2021-12-29
  • 2021-11-22
相关资源
相似解决方案