0

I just came out with a nice Debian 9 "Stretch" Virtual Machine hosted with Microsoft Azure. I've already used PuTTY, PuTTYgen and Pageant to connect with ssh to it and i've saved all this configuration into the PuTTY's startup window.

Once connected i've managed the VM, created the authorized_keys file and copied my public key in it under the .ssh directory.

But this afternoon, while running my PuTTY again, it isn't able to reach the VM and throw me a "timed out" connection after some time.

I've already tried :

  • Restart the VM via the Azure Portal
  • Redeploy the VM via the Azure Portal
  • Running with and without Pageant
  • Checking over and over the configuration ...

What I can't do :

  • Reset user's credentials and ssh configuration thought the Azure Portal (Missing VMForLinuxAccess extension)
  • Use Azure CLI
  • Change VM's configuration (I don't own the VM rights)

Have you any idea how to troubleshoot this problem ?

Thanks in advance.

5
  • Well, first thing for sure would be to look at the network traffic and see if you can at least get a TCP connection, there's a good chance that the problem has nothing to do with SSH...
    – gbr
    Oct 9, 2018 at 17:42
  • Thanks you for answering, how should I look at network traffic? Have you any idea about a tool to perform this ? Oct 9, 2018 at 18:08
  • Wireshark is probably the most convenient and most widespread, but you do need to have some knowledge of networking (being able to understand if you're managing to connect to a TCP port).
    – gbr
    Oct 9, 2018 at 18:21
  • You could telnet VMpublicIP with port 22 to check if network traffic blocking.
    – Nancy
    Oct 10, 2018 at 8:23
  • Theses answers were definitely awesome, but this morning it seems like everything works like a charm (And i've no explanations on it). Telnet was surely a good way too ! Oct 10, 2018 at 8:31

1 Answer 1

1

Just put comments as an answer.

Have you any idea how to troubleshoot this problem?

You could telnet VMpublicIP with port 22 to check if network traffic blocking. Also, you can capture the network traffic packages to analyze the network traces between the client and server via tool Wireshark or Network monitor.

Moreover, you can find the Troubleshoot SSH connections to an Azure Linux VM and Detailed SSH troubleshooting steps for issues connecting to a Linux VM in Azure.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .