While working with linux os, We need to open some kinds of port like for SSH server, Use the following command for the same.
The default port for SSH customer associations is 22; to change this default, enter a port number somewhere in the range of 1024 and 32,767. The
default port for Telnet customer associations is 23; to change this default, enter a port number somewhere in the range of 1024 and 32,767
Step 1: Allow the Port 22
You need to execute the given command to allow port 80 using UFW utility.
sudo ufw allow 22
Step 2: Get UFW firewall Status
Now we need to check and verify the open port by using the given command.
sudo ufw status
Conclusion
We have successfully opened port 22 SSH using UFW firewall on ubuntu linux Kindly report in case you are facing difficulties with following details.
- OS name
- OS version
- Package name
- Logs – Error / Warning / failed