I am encountering an issue while attempting to connect to my Azure Windows Virtual Machine using SSH within Visual Studio Code (VSCode) with the Remote – SSH extension, running on Windows with the Universal Windows Platform (UTM). The error message I’m receiving is:
The connect to host <host ip> port 22: Connection timed out
This occurs when I try to establish an SSH connection to my Azure VM. I’ve followed the official instructions provided by Visual Studio Code for SSH setup (https://code.visualstudio.com/docs/remote/ssh-tutorial), but unfortunately, it hasn’t resolved the issue.
Here are some additional details about my setup and what I’ve tried so far:
- I’m running Windows with the Universal Windows Platform (UTM).
- I have an Azure Windows Virtual Machine that I’m trying to connect to using SSH.
- I’m using Visual Studio Code with the Remote – SSH extension.
- I’ve double-checked the SSH configuration on both the local and remote machines.
- I’ve verified that the SSH service is running on the Azure VM.
- I’ve ensured that the SSH port (22) is open and accessible on the Azure VM.
- I’ve tried connecting from different network environments to rule out network issues.
Despite these efforts, I continue to encounter the “Connection timed out” error.
Can anyone provide guidance on how to troubleshoot and resolve this issue? Any insights or suggestions would be greatly appreciated. Thank you!
Here is the network setting of my VM: (https://i.sstatic.net/XIoTgg0c.png)
Here is the Info on my VM on Azure:
"name": "UTM-Win-test",
"id": "/subscriptions/b6d090c9-2d57-44bb-a67d-d651b2c0d564/resourceGroups/UTM-Win-test_group/providers/Microsoft.Compute/virtualMachines/UTM-Win-test",
"type": "Microsoft.Compute/virtualMachines",
"location": "eastus",
"properties": {
"hardwareProfile": {
"vmSize": "Standard_D2s_v3"
},
"provisioningState": "Succeeded",
"vmId": "00cb90a4-fc52-40f0-93f7-8f99f7a878c2",
"additionalCapabilities": {
"hibernationEnabled": false
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsDesktop",
"offer": "Windows-10",
"sku": "win10-22h2-pro-g2",
"version": "latest",
"exactVersion": "19045.4291.240406"
},
"osDisk": {
"osType": "Windows",
"name": "UTM-Win-test_OsDisk_1_b8e9ea2b111a4eb18f13faf43452e1d0",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"id": "/subscriptions/b6d090c9-2d57-44bb-a67d-d651b2c0d564/resourceGroups/UTM-Win-test_group/providers/Microsoft.Compute/disks/UTM-Win-test_OsDisk_1_b8e9ea2b111a4eb18f13faf43452e1d0"
},
"deleteOption": "Delete",
"diskSizeGB": 127
},
"dataDisks": []
},
"osProfile": {
"computerName": "UTM-Win-test",
"adminUsername": "dat-UTM-win",
"windowsConfiguration": {
"provisionVMAgent": true,
"enableAutomaticUpdates": true,
"patchSettings": {
"patchMode": "AutomaticByOS",
"assessmentMode": "ImageDefault",
"enableHotpatching": false
}
},
"secrets": [],
"allowExtensionOperations": true,
"requireGuestProvisionSignal": true
},
"securityProfile": {
"uefiSettings": {
"secureBootEnabled": true,
"vTpmEnabled": true
},
"securityType": "TrustedLaunch"
},
"networkProfile": {
"networkInterfaces": [
{
"id": "/subscriptions/b6d090c9-2d57-44bb-a67d-d651b2c0d564/resourceGroups/UTM-Win-test_group/providers/Microsoft.Network/networkInterfaces/utm-win-test746_z1",
"properties": {
"deleteOption": "Detach"
}
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": true
}
},
"licenseType": "Windows_Client",
"priority": "Spot",
"evictionPolicy": "Deallocate",
"billingProfile": {
"maxPrice": -1
}
},
"zones": [
"1"
]
}