SSH Connection error - deploying a Django web app with MYSQL using the Azure portal

YogeshMct 0 Reputation points
2024-08-06T10:20:31.2233333+00:00

Hi,

I am deploying a Django web app with MYSQL using the Azure portal, and all is well until I get to Run Django database migrations. When I try to connect to the SSH, it errors with "ssh://root@172.16.3.3:2222 SSH CONNECTION CLOSE - Error: connect EHOSTUNREACH 172.16.3.3:2222Error: connect EHOSTUNREACH 172.16.3.3:2222Error: I'm doing something wrong, but I do not know what. I've tried restarting my machine a couple of times but still the same result. It may get connected initially but then it will Close after about 2,3 seconds.

Help me please.

Thanks, Yogesh

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
846 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
962 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2024-08-09T13:23:17.47+00:00

    @YogeshMct Thanks for asking question!

    Could you please try to open SSH session directly by pasting the following URL into your browser and replace <app-name> with your app name.

    https://<app-name>.scm.azurewebsites.net/webssh/host

    Also, note that If you're not yet authenticated, you're required to authenticate with your Azure subscription to connect.

    You may also Open SSH session from remote shell

    Sharing detailed document link below:

    https://learn.microsoft.com/en-gb/azure/app-service/configure-linux-open-ssh-session?WT.mc_id=Portal-WebsitesExtension

    Let us know.

    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.