@Luis Sarmiento Welcome to Microsoft Q&A, Thank you for posting your here!!
Here are the quick troubleshooting steps you can follow
- Reset the SSH configuration.
- Reset the credentials for the user.
- Verify the network security group rules permit SSH traffic. Ensure that a Network Security Group rule
exists to permit SSH traffic (by default, TCP port 22) - Check the VM resource health. Ensure that the VM reports as being healthy. If you have boot
diagnostics enabled, verify the VM is not reporting boot errors in the logs.
5 .Restart the VM. - Redeploy the VM.
Additional troubleshooting document :https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/detailed-troubleshoot-ssh-connection?WT.mc_id=Portal-Microsoft_Azure_Support
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
------------------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.