Azure VM connect with SSH timeout Message

Option 1: Verify the SSH service on Azure VM

  1. Go to the Azure portal and navigate to your VM’s settings.
  2. Ensure that the SSH service is enabled for your VM. You can check this under the Networking section or the Management section.
  3. Make sure that the SSH port (default: 22) is open in the network security group (NSG) associated with VM.

Option 2: Try resetting the SSH configuration in the portal (I’m using the Ubuntu server)

  1. Select Virtual Machine
  2. Select Reset Password option from the side menu
  3. Select Reset Configuration Only
  4. Go to Azure Portal
  5. Select Update

Option 3: Using Serial Console – It might be possible that firewall restrict the port 22

  1. Go to Serial Console
  2. Enter your SSH username and password to login into the server
  3. Check the firewall status to see if port 22 is allowed – sudo ufw status verbose
  4. If the rule is not there then add it using sudo ufw allow ssh

Happy Programming!!

Leave a Reply

Discover more from The Engineering Behind Enterprise AI

Subscribe now to keep reading and get access to the full archive.

Continue reading