Can't access to an azure virtual machine with SSH

MYRE, Axel 31 Reputation points
2022-08-29T18:38:21.847+00:00

Hello,

I have an external kong that act has a gateway "http://api.company.fr" to multiples api that are on azure virtual machines, OS is debian everywhere.
I have also an internal kong to make the links between the external kong and the azure virtual machines

Yetserday for some reason, the internal kong rebooted. the error wasn't explained in azure and it lasted only 45seconds.
Anyway it was successfuly rebooted but since that i can't call API on the port 8000, I get "connection refused". I guess the port has been closed but even tough i re opened them with "sudo ufw allow 8000" and "sudo iptables -I INPUT -p tcp -m tcp --dport 8000 -j ACCEPT" it still doesn't work "connection refused)
I also check and even re created the incoming traffic rules to allow port 8000 depending of my house IP or IP of the virtual machine of the API.
nothing has changed..
I also rebooted the external kong and since that i can't even access to it with SSH, i allowed the incoming traffic rules from my IP to port 22 with azure portal , recreated the ssh key and tried to connected. I get error timeout

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
668 questions
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
656 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,675 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jackson Martins 10,151 Reputation points MVP
    2022-08-29T18:47:02.01+00:00

    Hi @MYRE, Axel

    You can connect via serial console too, and access your Linux and check if there are any restrictions,

    235853-image.png

    Reference: https://video2.skills-academy.com/en-us/troubleshoot/azure/virtual-machines/serial-console-linux

    You can disable the firewall for test (systemctl stop ufw) systemctl stop firewalld and Iptables -F

    Remembering that usually ssh root login is blocked

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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