栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

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

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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  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
        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  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        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命令查询当前用户)

保存并连接

 

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/942056.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号