Azure / azure-cli

Azure Command-Line Interface
MIT License
3.98k stars 2.96k forks source link

Feature request - simplify SSH login and SCP #5622

Open NillsF opened 6 years ago

NillsF commented 6 years ago

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:

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:

troydai commented 6 years ago

@chewong

squillace commented 6 years ago

being address in #5275

yonzhan commented 4 years ago

issue triaged.