I turned on UFW on my ubuntu linux vm in azure, and now I can't connect to it over ssh (or anything). On both the private and public IP.
Is there any way for me to connect to my vm now? e.g. the equivalent of like an iLo interface for physical machines?
Here is an msdn blog describing exactly this situation.
In a nutshell:
ufw_disable.sh
sh ufw_disable.sh
The script will be run as root, so there is no need to do sudo
inside the script (in fact this will cause things to fail).
ufw_disable.sh:
ufw disable
ufw status