question

AnhVo-7845 avatar image
0 Votes"
AnhVo-7845 asked bhargaviannadevara-msft commented

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

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-webapps-ssh
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

bhargaviannadevara-msft avatar image
1 Vote"
bhargaviannadevara-msft answered bhargaviannadevara-msft commented

@AnhVo-7845 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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@bhargaviannadevara-msft Thanks for your answer. I connected to my app service successfully using Azure Portal (Open SSH session in browser) or Remote Shell (using TCP tunneling). But my expectation is that I can share an SSH connection with everyone (do not need to log into an azure account which is the owner of the app service).

Do you have a suggestion for this solution?

Does Microsoft have any supports ??

0 Votes 0 ·

@AnhVo-7845 That is not supported with Azure App Services. If you need more control over the VMs on which your code runs, consider Azure Virtual Machines. For more information about how to choose between available Azure services, see Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison.

1 Vote 1 ·