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@127.0.0.1 -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.