Currently, if you want to ssh into a VM; you first need to grab the VMs IP address, and then use your built-in SSH to login to the VM. You also need to manage SSH keys for your VMs yourself.
Feature request:
Ability to SSH into a VM straight from CLI like:
az vm ssh -n myawesomevm
Ability to SCP a file into a VM from the CLI like:
az vm scp -n myawesomevm --local-file /home/user/file.txt
With the ability for az cli to be configurable as to which keys will be used:
az configure --defaults private-key='~/.ssh/myprivate.key'
Constraints/complexity
I've been thinking about this and reflected on the following complexities:
Public/Private IP: az CLI should be intelligent enough to use public IP if available or revert to private IP if there is no public IP.
Key management: typically ssh keys are stored in the .ssh directory. Az CLI will need to have configurability as to which keys are being used. Potential integration with Key Vault would be great nice to have.
Linux/Windows: SSH is Linux native, typical SSH usage on Windows is using Putty, although OpenSSH has been ported to Win32.
Situation
Currently, if you want to ssh into a VM; you first need to grab the VMs IP address, and then use your built-in SSH to login to the VM. You also need to manage SSH keys for your VMs yourself.
Feature request:
Ability to SSH into a VM straight from CLI like:
Ability to SCP a file into a VM from the CLI like:
With the ability for az cli to be configurable as to which keys will be used:
Constraints/complexity
I've been thinking about this and reflected on the following complexities: