Open ottnorml opened 3 years ago
hi @fengzhou-msft could you pls have a look? thanks
Please use option --prefer-private-ip
, by default only public IPs are used.
I also ran into this when connecting to a VM which only have a private IP. A more user friendly error hinting to try with the --prefer-private-ip would be useful.
@janegilring, this is a nice suggestion. Let me mark this issue as a feature request.
This is autogenerated. Please review and update as needed.
Describe the bug
I was trying to access a Bastion Host, wich has no public IP address.
Command Name
az ssh vm Extension Name: ssh. Version: 0.1.0.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az ssh vm --resource-group {} --vm-name {}
Expected Behavior
Successful SSH connection and login.
Environment Summary
Additional Context