How to access to my linux app service via ssh from remote pc?

Aleksandar Simovic 51 Reputation points

Hello :)

I have Linux web app service, and I want to access it via ssh, but with remote pc, I can access via web ssh, and thats ok, but i want to access it via my pc. How I can do that? And where I can find login information and host?

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.
7,212 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,011 Reputation points MVP

    Hello @Aleksandar Simovic

    You can open SSH session from remote shell using TCP tunneling.

    You can create a network connection between your development machine and Web App for Containers over an authenticated WebSocket connection. It enables you to open an SSH session with your container running in App Service from the client of your choice.

    Open a remote connection to your app using the az webapp create-remote-connection command

    az webapp create-remote-connection --subscription <subscription-id> --resource-group <resource-group-name> -n <app-name> &  

    & at the end of the command is just for convenience if you are using Cloud Shell. It runs the process in the background so that you can run the next command in the same shell.

    The command output gives you the information you need to open an SSH session.

    Port 21382 is open  
    SSH is available { username: root, password: Docker! }  
    Start your favorite client and connect to port 21382  

    Open an SSH session with your container with the client of your choice, using the local port. The following example uses the default ssh command:

    ssh root@ -p <port>  

    When being prompted, type yes to continue connecting. You are then prompted for the password. Use Docker!, which was shown to you earlier.

    If you think your question has been answered, click "Mark as Accept Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.

    0 comments No comments