How to open ssh 22/TCP port using ufw on Ubuntu/Debian Linux
To open port 22 (the default SSH port) for incoming traffic using ufw on Ubuntu/Debian Linux, use the following command:
sudo ufw allow 22/tcpYou can verify that the port is open by checking the status of ufw:
sudo ufw statusYou should see output similar to the following, indicating that port 22 is open for incoming traffic:
Status: activenTo Action From
n-- ------ ----
22/tcp ALLOW Anywherenn(https://www.ameriseed.net/)