Debian無法通過ssh連接


如果出現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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM