About SSH in App service (Connect Azure App Service from outside)

Anh Vo 26 Reputation points
2021-08-18T07:54:55.187+00:00

Hello everyone

I deployed to my app service using docker image and set up ssh port 2222 (follow Microsoft document). I connected to my app service successfully using Azure Portal or Remote Shell.
But I need to connect SSH from outside (everyone can connect) no need to log in with an Azure account that created an app service (I can use Putty or cmd).

Any Suggestions ??

Sorry because my English is not good.

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

Accepted answer
  1. BhargaviAnnadevara-MSFT 5,466 Reputation points
    2021-08-18T18:22:11.427+00:00

    @Anh Vo Thanks for reaching out. I'm afraid you cannot establish an SSH connection with your container skipping authentication.

    For Linux containers in Azure App Service, SSH support is restricted to the following options as of today:

    And for both of the above, you're required to authenticate with your Azure subscription to connect. Once authenticated, you can run commands inside your container as usual.

    However, post authentication, if you open a remote connection to your app using the az webapp remote-connection create command, you can open an SSH session with your container with the SSH client of your choice (PuTTY, cmd etc.) to 127.0.0.1 and the <port> displayed in the command output.

    Hope this helps. Do let us know if you have further questions.

    ----------

    If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful