Since my SSH attempts were showing
port 22: connection refused , I tried
sudo ufw allow 22
Even after that, I am not able to SSH. Now I don’t want to have port 22 as a vulnerability and want to set to the default condition. Which command to use for that in 18.04 ? Thanks.