Не удается подключиться по SSH к виртуальной машине ubuntu
Не удается подключиться по SSH к виртуальной машине ubuntu. 2 дня назад подключение отвалилось, позавчера получилось решить проблему несколькими перезагрузками. Но вчера машина опять отключилась, и не могу зайти к ней по ssh. В веб интерфейсе azure всё хорошо, все проверки проходит и нет никаких ошибок. Так же сервер не пингуется.
Azure Virtual Machines
-
Sander van de Velde | MVP 31,211 Reputation points • MVP
2024-05-16T05:39:07.04+00:00 Translated:
Can't connect via SSH to ubuntu virtual machine
Can't connect via SSH to the ubuntu virtual machine. 2 days ago the connection fell off, the day before yesterday I was able to solve the problem with several reboots. But yesterday the machine turned off again, and I can’t access it via ssh. Everything is fine in the Azure web interface, all checks pass and there are no errors. Also the server does not respond.
-
Sander van de Velde | MVP 31,211 Reputation points • MVP
2024-05-16T05:44:40.6433333+00:00 Hello @Anton Stoliarenko,
welcome to this moderated Azure community forum.
Better questions with more information lead to better answers from our community members.
Please provide information about the steps you have taken, the guide you follow, and the errors you receive so fellow members can understand your question.
Have you active the SSH server in Ubuntu yourself or via the VM installation procedure? Have you opened an inbound port on the firewall? Are you using the same port number?
off topic: are you aware Azure Bastion is a much more secure way to connect to your VM without any effort? Do you know the new Azure Bastion Developer SKU is available?
-
Anton Stoliarenko 0 Reputation points
2024-05-16T06:34:14.9833333+00:00 "Have you active the SSH server in Ubuntu yourself or via the VM installation procedure?"
- i think i did it myself
"Have you opened an inbound port on the firewall?"
- yes
"Are you using the same port number?"
- yes
Some screenshots below.
All i did was just reboot the VM.
All problem started 13 of may
-
Anton Stoliarenko 0 Reputation points
2024-05-16T06:36:28.22+00:00 i wrote answers below as an answer. sorry for this. next time i'll do it correctly
-
Anton Stoliarenko 0 Reputation points
2024-05-16T06:58:49.1333333+00:00 one more thing - today new errors appeared in serial console
-
vipullag-MSFT 26,021 Reputation points
2024-05-16T07:11:28.89+00:00 Converting your initial query to english:
Can't connect via SSH to the ubuntu virtual machine. 2 days ago the connection fell off, the day before yesterday I was able to solve the problem with several reboots. But yesterday the machine turned off again, and I can’t access it via ssh. Everything is fine in the Azure web interface, all checks pass and there are no errors. Also the server does not ping.
-
vipullag-MSFT 26,021 Reputation points
2024-05-16T07:14:54.9733333+00:00 Hello Anton Stoliarenko
Thanks for sharing the details. Based on the Public IP shared in your screenshot, the port 22 is open. I just checked using this link: https://ping.eu/port-chk/
Can you try to login using putty from your local machine and see if that returns any error.
-
Sander van de Velde | MVP 31,211 Reputation points • MVP
2024-05-16T18:20:37.1166667+00:00 Hello @Anton Stoliarenko,
(please hide the public IP address in the screenshots)
Your VM has only 500MB of memory... according to the screenschot.
I see out of memory errors in the other screendump, resulting in killing processes.
This could be a sign...
Can you see how much memory is used right now?
Are there any heavy processes running? Do you expect memory leaks in applications?
Can you change the size of the VM temporarily and notice a decrease in broken connections?
-
vipullag-MSFT 26,021 Reputation points
2024-05-20T04:04:44.6466667+00:00 Hello Anton Stoliarenko
Any update on the issue?
Just checking in to see if you got a chance to see previous response.
Sign in to comment