The connect to host port 22: Connection timed out on Azure Window Virtual Machine (Running with VScode on UTM)

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"
    ]
}

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật