[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:
- Created 4 years ago
- Comments:14 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 withaz webapp create-remote-connection
.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.