App Service SSH connection issue

Rajasekhar 21 Reputation points
2020-07-10T11:08:39.607+00:00

SSH CONNECTION CLOSE - Error: getaddrinfo ENOTFOUND Couldnt connect to main site container Couldnt connect to main site container:2222Error: getaddrinfo ENOTFOUND Couldnt connect to main site container Couldnt connect to main site container:22222Error: connect ECONNREFUSED 172.16.0.3:2222Error: connect ECONNREFUSED 172.16.0.3:2222Error: connect ECONNREFUSED 172.16.0.3:2222 CREDENTIALS

Getting the above error when i try to connect Azure APP--Service--> WEBServiceTesting --> SSH

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,323 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,914 questions
{count} votes

12 answers

Sort by: Most helpful
  1. Daudau_HN 1 Reputation point
    2021-10-16T13:10:00.073+00:00

    Same here :(

    0 comments No comments

  2. Schmidt, Lukas 1 Reputation point
    2021-11-05T14:51:31.733+00:00

    If you're using a docker-compose file with multiple containers for your App, keep in mind that Azure will always connect to the frontend container even if other containers have port 2222 exposed.
    (See answer at https://stackoverflow.com/questions/67731411/ssh-into-azure-app-service-for-docker-container )

    For those who have problems with the configuration itself - have a look at the documentation provided by Microsoft:
    https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#enable-ssh

    0 comments No comments

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.