ssh allow anywahre port ubunut code example
Example 1: enable ufw ubuntu
sudo ufw enable
Example 2: allow ip through ufw
sudo ufw allow from 15.15.15.0/24 to any port 22
Example 3: ssh on specify port
ssh user@remotehostip -p XXX
sudo ufw enable
sudo ufw allow from 15.15.15.0/24 to any port 22
ssh user@remotehostip -p XXX