Ubuntu开启远程ssh端口

无法ssh远程访问ubuntu系统,需执行两步
1.安装openssh-server
2.防火墙开启22端口

sudo apt-get install openssh-server
 
sudo apt-get install ufw
 
sudo ufw enable
 
sudo ufw allow 22
 
ps -e |grep ssh
 

posted @ 2024-04-04 17:13  中国大雄  阅读(117)  评论(0)    收藏  举报