question

pluc7-4565 avatar image
0 Votes"
pluc7-4565 asked AnuragSingh-MSFT edited

No access ssh after the automatic update schedule

Hi guys!



I have an automation account created by my client and have started scheduling automatic updates for a group of linux machines.

It was successful except in one machine, I wanted to verify the problem by connecting with azure-cli (via powershell on my local pc) with the command

az ssh vm --ip 10.xxx.xxx.xxx

But nothing happens, I noticed that I can no longer connect to any of the linux machines to which I started the scheduling except two of them.

182888-azurecli-ssh.png

I tried to reset ssh with the command

az vm user reset-ssh --resource-group linux_test --ip 10.xxx.xxx.xxx


rebooted the machine and now it asks me for the password that I don't know which one it refers to since mine does not accept it .

Did the update do something to the ssh service? How can I be able to connect to this group of linux machines again?


Thank you and good day!




azure-virtual-machinesazure-automation
azurecli-ssh.png (6.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnuragSingh-MSFT avatar image
0 Votes"
AnuragSingh-MSFT answered

Hi @pluc7-4565,

Welcome to Microsoft Q&A! Thanks for posting the question.

I see that you are trying to connect to an Azure VM using the private IP address (10.X.X.X) from your local machine. Please note that, you cannot connect to private IP address from internet/public internet connection and need an public IP address to be able to connect to machine. Please refer to az ssh vm documentation for more details. You may also refer to this article to understand more about private network and private IP addresses range. Azure Automation update should not interfere with the ssh service or local accounts.
You can follow either of the following methods to connect to this VM using ssh:

1. Connect your machine to same private network as that of VM: Connect an on-premises network to Azure
2. Create a VM in the same Virtual Network as that of the target machine and use that VM to connect over ssh.
3. Add a public IP to this VM and use it to connect from your local machine.

Please let me know if you have any questions.


Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.