Debian开放端口

**安装ufw**
apt-get install ufw

开放22端口

ufw enable
ufw allow 22

查看是否开放22端口

netstat -ntlp|grep 22