2018年05月22日 11:07:12
鱼乐1024
阅读数:159
</div>
<div class="operating">
</div>
</div>
</div>
</div>
<article class="baidu_pl">
<div id="article_content" class="article_content clearfix csdn-tracking-statistics" data-pid="blog" data-mod="popu_307" data-dsm="post">
<div class="article-copyright">
<svg class="icon" title="CSDN认证原创" aria-hidden="true" style="width:53px; height: 18px; vertical-align: -4px;">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#CSDN_Cert"></use>
</svg>
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zou1072585763/article/details/80402958 </div>
<div id="content_views" class="markdown_views prism-atom-one-dark">
<!-- flowchart 箭头图标 勿删 -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
<h1 id="通过xshell连接虚拟机中linux"><a name="t0"></a>通过<a href="https://www.baidu.com/s?wd=XSHELL&tn=24004469_oem_dg&rsv_dl=gh_pl_sl_csd" target="_blank">XSHELL</a>连接虚拟机中LINUX</h1>
如有雷同,敬请告知
解决问题:通过XSHELL连接LINUX
1、采用有主机模式的网络连接,
ping通虚拟机和主机
2、先检查linux是否有ssh服务,
命令:ssh -version

说明有ssh服务
3、查看ssh服务是否开启
命令:netstat -tl
当有这个便是存在,如果不存在则开启ssh服务

4、查看22号端口是否开放,别让防火墙给挡住
如果没有开放则开放22号端口
命令:nc -lp 22 &
5、使用xshell进行连接
剩下就是点保存,输入用户和密码就行了