CmdID

CmdID / az / az ssh

az ssh vm

SSH into Azure VMs or Arc Servers. Azure CLI extensions reference

14 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

14 in the Azure CLI extensions reference
--certificate-file, -cPath to a certificate file used for authentication when using local user credentials.
--force-delete-credentials, --delete-private-keyThis is an internal argument.
--hostname, --ipThe public (or reachable private) IP address (or hostname) of the VM
--local-userThe username for a local user
--portSSH port
--prefer-private-ipWill prefer private IP.
--private-key-file, -iThe RSA private key file path
--public-key-file, -pThe RSA public key file path
--resource-typeResource type should be either Microsoft.Compute/virtualMachines, Microsoft.HybridCompute/machines, or Microsoft.ConnectedVMwareSphere/virtualMachines.
--ssh-client-folderFolder path that contains ssh executables (ssh.exe, ssh-keygen.exe, etc).
--ssh-proxy-folderPath to the folder where the ssh proxy should be saved.
--vm-name, --name, -nThe name of the VM
--winrdp, --rdpStart RDP connection over SSH.
--yes-without-prompt, --yes, -yUpdate service configuration without prompting user