这篇文章主要介绍了ubuntu开启22端口的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
场景
需要通过xshell工具,通过ssh连接ubuntu服务器。默认端口22。
结果
常规连接
![图片[2]-ubuntu开启22端口的实现_Linux-安全小天地](https://img.godyu.com/2023/12/20231226172951330.jpg?imageView2/0/format/webp/q/75)
命令行连接
//直接通过命令连接 ssh 远程机器名@192.168.67.128 或者 telnet 192.168.67.128 22
![图片[3]-ubuntu开启22端口的实现_Linux-安全小天地](https://img.godyu.com/2023/12/20231226172952622.jpg?imageView2/0/format/webp/q/75)
分析
ip和端口都没有问题。
查看服务器22端口是否启动。
lsof -i:22
![图片[4]-ubuntu开启22端口的实现_Linux-安全小天地](https://img.godyu.com/2023/12/20231226172953563.jpg?imageView2/0/format/webp/q/75)
//安装后需要重启 sudo apt-get install openssh-server openssh-client
![图片[5]-ubuntu开启22端口的实现_Linux-安全小天地](https://img.godyu.com/2023/12/20231226172954814.jpg?imageView2/0/format/webp/q/75)
service ssh start ssh localhost lsof -i:22
ssh远程连接访问
![图片[7]-ubuntu开启22端口的实现_Linux-安全小天地](https://img.godyu.com/2023/12/20231226172957592.jpg?imageView2/0/format/webp/q/75)
到此这篇关于ubuntu开启22端口的实现的文章就介绍到这了,更多相关ubuntu开启22端口内容请搜索安全小天地以前的文章或继续浏览下面的相关文章希望大家以后多多支持安全小天地!
THE END











暂无评论内容