Bastion via SHH with a key works post VM restore then fails next day onward

Rick Regello 0 Reputation points
2026-05-18T19:37:46.4833333+00:00

Simple Ubuntu VM. Bastion works one day but not the next. If I restore the server to the first backup, bastion works for a day only. Any guidance would be great.

Azure Bastion
Azure Bastion

An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Vallepu Venkateswarlu 10,590 Reputation points Microsoft External Staff Moderator
    2026-05-18T21:29:13.47+00:00

    Hi @ Rick Regello,

    Welcome to Microsoft Q&A Platform.

    Since Bastion works immediately after restoring the VM and then stops again later, this may indicate the issue is occurring inside the VM or due to a configuration change over time rather than the Bastion resource itself.

    Please check the below settings

    Verify SSH service status on the VM after the issue occurs:

    sudo systemctl status ssh
    sudo journalctl -u ssh
    

    Review recent changes:

    • OS updates
    • startup scripts / cloud-init
    • cron jobs
    • firewall rules (ufw, iptables)
    • SSH configuration changes

    Verify networking:

    NSG allows inbound TCP/22 from Azure Bastion

    • No UDR or firewall changes affecting connectivity
    • Review Bastion diagnostics: Azure Portal → Bastion → Diagnose and solve problems

    Compare VM state before/after the failure window to identify what changes between the working and non-working state.

    References:

    Troubleshoot Azure Bastion connections

    Connect to Linux VM using Azure Bastion SSH

    Network security groups for Azure Bastion

    Please210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, **this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.