Unable to SSH to Azure Arc Gateway VM

AZR-GP 20 Reputation points
2025-03-21T17:50:01.25+00:00

Is it possible to SSH to the Azure Arc Gateway VM that is deployed by the onboarding script?

No credentials are provided at the time of deployment. The 3 yaml and the kubeconfig files created do not seem to help.

However, I can run the commands:

az arcappliance get-credentials

az arcappliance logs vmware

Looking at some of the log output there seems to be a user 'clouduser'.

Running ssh -v -i privatekey clouduser@ARC-RB-IP gives the following error:-

PTY allocation request failed on channel 0

Trying to add a command (eg ls) with ssh -v -i privatekey clouduser@ARC-RB-IP ls gives the following error:-

Unauthorized command: ls

Is it possible to get an ssh shell here?

Thanks.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
504 questions
{count} votes

Accepted answer
  1. Alex Burlachenko 4,550 Reputation points
    2025-03-24T13:24:12.34+00:00

    Hi AZR-GP,

    Direct SSH access to Azure Arc Gateway VMs is not supported by design for security reasons. But I would be happy offer to u a few alternatives

    For logs

    az arcappliance logs vmware --out-file logs.zip
    

    To run commands

    az arcappliance runcommand vmware 
    

    Docs for undertanding

    Troubleshooting Guide

    Security Boundaries

    Best regards,

    Alex

    P.S. If my answer help to you, please Accept my answer


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.