Unable to ssh into web app

intg backup 1 Reputation point

Hii there,

We are facing an issue , details are as below.

we have followed below document & created a web app container. I was able to ssh into it.

The same thing i have implemented in my custom dockerfile & code, created a web app out of it. but getting error while doing ssh

We have followed below document as well.

It would be great help if someone gives us a helping hand.
thanks in advance.

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

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 10,681 Reputation points Microsoft Employee

    @intg backup Since the community does not seem to have an answer, we wanted to reach out and see if you still require assistance with this matter.

    There are a number of reasons why this error can be caused. Below are a few items to review.

    With Docker in App Services, SSH needs to be enabled on the image itself, with the SSH server using the credentials username 'root', password 'Docker!' and listening on port 2222, exposed to port 80. Additionally, it's important to be aware that in Docker Compose deployments, only the primary container will be accessible over SSH.

    You can also compare/contrast your files to the ones listed here, which is are known working SSH samples for django or python:



    Sometimes scaling up your web app, waiting 20-30 minutes, and then scaling back down can also help if SSH falls into a locked state, which is rare but an easy troubleshooting step to try.

    Let us know the results of the above suggestions. We look forward to your reply.

    1 person found this answer helpful.
    0 comments No comments