-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Docker image: SSH command is gone #27841
Copy link
Copy link
Open
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botPossible-SolutionSSHService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssueVM SSHact-identity-squadact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botPossible-SolutionSSHService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssueVM SSHact-identity-squadact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
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