centos 7 连接 xshell5

时间:2023-03-08 21:18:03

首先 保证你的centos版本与你选择的linux版本相同。

1.首先查看本机IP和网关

2.在centos7命令行下输入nmtui

进入   Edit a commection

centos 7 连接 xshell5

选择Edit

centos 7 连接 xshell5

按照刚才所看的本机ip以及网关号配置虚拟机的ip及网关,如图(确保ip前三项跟本机的ip一致,网关直接填本机网关)

centos 7 连接 xshell5centos 7 连接 xshell5

OK

quit

回到mutui界面选择“激活链接“

centos 7 连接 xshell5

重启虚拟机

在xshell中尝试重新连接