From 1df8180bbf01d6aa90ec71805c61362dbad3000f Mon Sep 17 00:00:00 2001 From: Jacopo Notarstefano Date: Wed, 15 Dec 2021 17:44:27 +0100 Subject: [PATCH] Also allow --hostname in az ssh config --- src/ssh/azext_ssh/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh/azext_ssh/_params.py b/src/ssh/azext_ssh/_params.py index 2a1a5b33ce9..9ae31b0085e 100644 --- a/src/ssh/azext_ssh/_params.py +++ b/src/ssh/azext_ssh/_params.py @@ -24,7 +24,7 @@ def load_arguments(self, _): with self.argument_context('ssh config') as c: c.argument('config_path', options_list=['--file', '-f'], help='The file path to write the SSH config to') c.argument('vm_name', options_list=['--vm-name', '--name', '-n'], help='The name of the VM') - c.argument('ssh_ip', options_list=['--ip'], help='The public IP address (or hostname) of the VM') + c.argument('ssh_ip', options_list=['--ip', '--hostname'], help='The public IP address (or hostname) of the VM') c.argument('public_key_file', options_list=['--public-key-file', '-p'], help='The RSA public key file path') c.argument('private_key_file', options_list=['--private-key-file', '-i'], help='The RSA private key file path') c.argument('use_private_ip', options_list=['--prefer-private-ip'],