November 2018
Intermediate to advanced
566 pages
17h 15m
English
To enable port 22 on an Ubuntu machine, type in the following code:
# ufw allow 22/tcp# systemctl restart ufw# ufw enable
In Ubuntu, you can check the firewall settings by using ufw status to check whether it's active or not. If it's inactive, add a rule to allow port 22 access, that is, sudo ufw allow 22/tcp, and restart the firewall with systemctl restart ufw. Now, enable the firewall with sudo ufw enable and check its status.
Read now
Unlock full access