Same here :(
App Service SSH connection issue
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
12 answers
Sort by: Most helpful
-
-
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