You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ssh/azext_ssh/_help.py
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,20 +24,28 @@
24
24
25
25
helps['ssh config'] ="""
26
26
type: command
27
-
short-summary: Create an SSH config for resources (Azure VMs, etc) which can then be imported to 3rd party SSH clients
27
+
short-summary: Create an SSH config for resources (Azure VMs, etc) which can then be used by clients that support OpenSSH configs and certificates
28
+
long-summary: Other software (git/rsync/etc) that support setting an SSH command can be set to use the config file by setting the command to 'ssh -F /path/to/config' e.g. rsync -e 'ssh -F /path/to/config'
28
29
examples:
29
30
- name: Give a resource group and VM for which to create a config, and save in a local file
30
31
text: |
31
32
az ssh config --resource-group myResourceGroup --vm-name myVm --file ./sshconfig
32
-
- name: Give the public IP (or hostname) of a VM for which to create a config
33
+
- name: Give the public IP (or hostname) of a VM for which to create a config and then ssh
33
34
text: |
34
35
az ssh config --ip 1.2.3.4 --file ./sshconfig
36
+
ssh -F ./sshconfig 1.2.3.4
35
37
- name: Create a generic config for use with any host
0 commit comments