SSH on the Azure apps service in Docker

Mirabito, Massimo (Max) 0 Reputation points
2024-08-22T11:20:02.8566667+00:00

Dear all, I have SSH working on a docker image hosted on an Azure AppService.

I can get to it via the azure portal web browser. Now I would like to try and access the Docker image via SSH using MobaXterm or via CLI (ssh) on my laptop (Win 10).

I am getting this message
C:\Users\xxxx>ssh root@<APP_SERVICE-NAME>.azurewebsites.net -p 2222 kex_exchange_identification: Connection closed by remote host

Does anyone how to resolve this?

Thanks in advance

max

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,954 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,111 Reputation points Microsoft Employee Moderator
    2024-08-23T10:05:20.8233333+00:00

    @Mirabito, Massimo (Max) Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    Based on the shared information, I understand that you are trying to SSH into the app service that is running on custom container. Correct my if my understanding is wrong.

    Please follow the below steps to Configure & SSH into Linux docker images app service.

    1. Enable SSH in custom docker images in App service.
    2. SSH into the Linux docker images. Also, note that Open SSH is currently in preview.

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.