question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SSH] - Unable to connect to App Service SSH through "az webapp ssh" command

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug Cannot connect to App Service SSH using “az webapp ssh” command. It states “Connection is not ready yet, please wait”, and waits until times out.

To Reproduce

  • log into our tenant in Azure Portal
  • open cloud shell
  • type the command “az webapp ssh --name [our-app-service-name] -g [our-resource-group-name]-rg -t 30”

Expected behavior Connection on our App Service through SSH.

Environment summary We are using Azure portal own CLI (azure-cli 2.1.0) and also DevOps task “AzureCLI@2”, both failing to reach our App Services.

Additional context We have several App Services into the same App Service Plan, none of which can be connected through the “az webapp ssh” command. We are able to connect the SSH via Azure Portal > App Service > SSH normally. Until last week we could (although not consistently) connect using this command. Now we just cannot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
amasovercommented, Mar 12, 2020

I see the same behavior as @garimpeirodouniverso, both running the CLI locally on my machine, and from Cloud Shell. I hadn’t tried az webapp ssh before today, so I’ve never seen successful behavior. I also get a timeout error with az webapp create-remote-connection.

3reactions
seligj95commented, Jul 7, 2021

Unable to reproduce bug. I was able to SSH via portal and CLI - insufficient details for further reproduction. closing this issue. FYI, this command is planned to be deprecated and replaced, timeline TBD.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to ssh into app service - Microsoft Q&A
Paste the URL (https://{app-name}.scm.azurewebsites.net/webssh/host) into your browser and replace {app-name} with your app name. Also, you're ...
Read more >
How to SSH into specific Azure Web App instance
Method 2: Azure Portal · Instance names in ARM. Find SSH in your web app's settings: · SSH item in Azure Web Apps...
Read more >
Is there any way to copy files to Appservice container over ...
Note: Another reason is in few of the Corporate Systems, Secure Shells (SSH) is restricted to use so that the error comes like...
Read more >
Enabling SSH on Linux Web App for Containers -
When a Container crashes/exits - it will show SSH CONNECTION CLOSED in red on Azure Web App for Containers SSH terminal screen. This...
Read more >
Connect Azure Container Instance through SSH client and ...
First, access your container from Azure Portal or using the cmdlet: az container exec –resource-group –name –exec-command “/bin/bash” · Install the following ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found