ufw防火墙,解决Xshell无法进行SSH连接问题.note
#apt install ufw //下载防火墙
#apt openSSH-server //安装SSH
#ufw allow 22/tcp //启用tcp22端口
#ufw allow 22/udp //启用udp22端口
#ufw disable //关闭防火墙(需要重启才生效)




#apt install ufw //下载防火墙
#apt openSSH-server //安装SSH
#ufw allow 22/tcp //启用tcp22端口
#ufw allow 22/udp //启用udp22端口
#ufw disable //关闭防火墙(需要重启才生效)



