NxShell连接本地VMWare虚拟机上安装的Ubuntu22.0服务器

前提:

1.下载安装NxShell

2.VMWare上安装配置好Ubuntu22.0

连接步骤:

1.设置虚拟机网络连接模式为NAT

2.运行虚拟机,检查虚拟机有没有连上网络

可以通过Ubuntu上默认安装的Firefox浏览器查看有无网络

或者打开终端ping www.github.com查看

3.关闭Ubuntu防火墙

步骤:

1.su切换到root用户

2.ufw status 查看firewall状态active为打开inactive为关闭

3.如果没关闭使用ufw disable关闭

 

4.查看虚拟机IP

终端通过ifconfig查看

ens33节点下的inet即为虚拟器ip

jianglai@jianglai-virtual-machine:~$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.126.128  netmask 255.255.255.0  broadcast 192.168.126.255
        inet6 fe80::f996:b316:51d9:fcb2  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fc:bd:a6  txqueuelen 1000  (Ethernet)
        RX packets 944  bytes 166557 (166.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 549  bytes 68576 (68.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 188  bytes 18211 (18.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 188  bytes 18211 (18.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

jianglai@jianglai-virtual-machine:~$ ^C

5.本地通过cmd ping命令测试虚拟机IP可否连接

6.Nxshell连接虚拟机

主机中输入虚拟机IP地址 端口号默认为22

认证方式选择密码 用户名输入当前虚拟机运行的用户名密码(终端中通过who命令查询当前用户)

保存并连接

 

 

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值