Cause: The issue occurred due to an unknown configuration or transient error that prevented successful SSH connections on port 22 despite the proper NSG bypass rule and previous successful access. The connection test in the Azure portal was failing, indicating that port 22 was blocked from the source IP.
Resolution: The issue was resolved after the customer changed the VM password several times. This action might have triggered a reset or corrected a possible authentication-related anomaly, allowing SSH access to be restored.