Debian无法通过ssh连接

时间:2021-09-24 14:17:01   收藏:0   阅读:61

如果出现XShell无法连接Debian的问题:

技术分享图片

 

进入Debian查看22端口情况,发现22端口未开启

 

1  netstat -ntlp|grep 22

查看sshd是否安装

1 ps -e|grep ssh

 

看是否有sshd,如果没有sshd,那就是没有安装openssh-server,需要安装。

安装sshd

apt-get install openssh-server
安装ufw

apt-get install ufw
开放22端口

ufw enable
ufw allow 22

参考链接:
https://blog.csdn.net/qq_43901693/article/details/101173523
https://blog.csdn.net/Perfect_Accepted/article/details/82253411

原文:https://www.cnblogs.com/Thenext/p/15311081.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!