ubuntu开启22端口的实现
<p><strong>场景</strong></p>
<p>
需要通过xshell工具,通过ssh连接ubuntu服务器。默认端口22。</p>
<p>
<strong>结果</strong></p>
<p>
常规连接</p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/7807c07fb7cf9e8d49ecac6411831f91.jpg"></p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/4ac20cdb46cf06fbe2d7e97a2df4875a.jpg"></p>
<p>
命令行连接</p>
<p>
<br><code>//直接通过命令连接<br>
ssh 远程机器名@192.168.67.128<br>
或者<br>
telnet 192.168.67.128 22</code></p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/5b8909a515d8327fe11b1871bab26b8a.jpg"></p>
<p>
<strong>分析</strong></p>
<p>
ip和端口都没有问题。<br>
查看服务器22端口是否启动。<br><code>lsof -i:22</code></p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/32eac488df750508cadf4e19208cc8ca.jpg"></p>
<p>
<br><code>//安装后需要重启<br>
sudo apt-get install openssh-server openssh-client</code></p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/79b0bf02cc745445a0504cee3a1fc0e0.jpg"></p>
<p>
<br><code>service ssh start<br>
ssh localhost<br>
lsof -i:22</code></p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/58e21f8877dc35379e30ac99af2ffe81.jpg"></p>
<p>
ssh远程连接访问</p>
<p>
<img style="max-width:100%!important;height:auto!important;"title="ubuntu开启22端口的实现" alt="ubuntu开启22端口的实现" src="https://zhuji.jb51.net/uploads/img/202305/af4a5186f2e421ad7912966964db6488.jpg"></p>
<p>
到此这篇关于ubuntu开启22端口的实现的文章就介绍到这了,更多相关ubuntu开启22端口内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!</p>
<p>
原文链接:https://blog.csdn.net/laosun12/article/details/90413267</p>
頁:
[1]