Docker image: SSH command is gone #27841
Labels
Account
az login/account
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Possible-Solution
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Similar-Issue
SSH
VM SSH
Describe the bug
Former versions of the "standard" docker image (mcr.microsoft.com/azure-cli:latest) contained ssh command (formerly provided by installed openssh package).
This is no longer the case for version 2.54.0 build at 2023-11-08T05:17:55Z.
Having the ssh command within the container allowed to forward ports using a combination of Azure bastion and Azure virtual linux machine.
From the Azure CLI documentation, which shows how to map local SSH keys into the container, I concluded, that ssh is a part of the image.
Related command
docker run --rm -it mcr.microsoft.com/azure-cli sh -c "az extension add -n ssh && az login --use-device-code && az ssh vm --ip azureVm"
Errors
Issue script & Debug output
Expected behavior
SSH console opens
Environment Summary
azure-cli 2.54.0
core 2.54.0
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location '/usr/local/bin/python'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.6 (main, Oct 19 2023, 05:43:48) [GCC 12.2.1 20220924]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
The text was updated successfully, but these errors were encountered: