Help Needed: Can't Connect to My Azure Virtual Machine via SSH

September 12, 2025 2 answers
Asked by TechieNinja42
I'm new to this and trying to run a virtual machine on Azure. I just started my internship, and today I got access to Azure for the first time. I was instructed to connect to the VM using PuTTY. I've generated both the public and private keys and added the public key to the SSH keys. However, I'm still facing a 'connection timed out' error when I try to run the command 'ssh -i vm@port'. I consulted an AI for help, and it suggested that the only fix left might be to create a new VM. I'm feeling a bit lost and would really appreciate any guidance you can provide!

Answers

VirtualVoyager81
I understand your frustration! Sometimes those settings can be tricky. Just make sure that the NSG specifically allows SSH traffic (usually on port 22), and if you can't access the firewall settings, maybe ask your admin to help you out!
Reply to this answer
CloudExplorer99
Have you checked if SSH is allowed in your VM's firewall or the network security group (NSG)? That could be blocking the connection.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions