Azure Web SSH prompt login window

Ken Fly 46 Reputation points
2022-12-03T15:07:31.737+00:00

When I follow https://learn.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session#open-ssh-session-in-browser to open web ssh, the frontend prompts a window asking me for username and password to sign in.

I tried docker ssh username and password but it does not work.

I tried https://learn.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session#open-ssh-session-from-remote-shell and have no issue to ssh from command line.

If you're not yet authenticated, you're required to authenticate with your Azure subscription to connect. Once authenticated, you see an in-browser shell, where you can run commands inside your container.

I am curious why some of my app services asking me for username and password when web ssh, some not.

They are all using the same docker image.

Where is the related config?

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

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,246 Reputation points Microsoft Employee Moderator
    2022-12-05T09:11:27.35+00:00

    @Ken Fly Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this. yes all will be using the same

    Connecting to SSH for Linux containers using either Web ssh method or Remote-shell method requires authentication, and you need to pass your azure subscription credentials.

    Remote-shell method would have worked for you since you might have tried to SSH into Linux container of the app service through cloud shell from portal or command line editor from your local machine where you have already been authenticated already. In other words, refresh token is not expired from the last session.

    Expected behavior is that the user will be prompted irrespective of the SSH method provided the refresh token is expired.

    Feel free to reach back to me if you have any further questions on this.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.