mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-03 07:37:47 +00:00
Fix: SSH config may not contain hostname (#893)
I am sorry. I assumed that an SSH host in the config file must contain a hostname, but this assumption is not true. If a user reads an SSH host that doesn't contain a hostname, it will fail to parse.
This commit is contained in:
parent
0d70dbddd5
commit
1533149826
2 changed files with 16 additions and 8 deletions
|
@ -21,6 +21,8 @@ Host my-ip
|
|||
HostName 192.168.50.237
|
||||
Host mydomain
|
||||
HostName mydomain.example.com
|
||||
Host no.hostname
|
||||
ProxyCommand ssh -q -W %h:%p office
|
||||
Host my-domain-2
|
||||
HostName mydomain-2.example.com
|
||||
Host my_domain_3
|
||||
|
@ -34,6 +36,7 @@ When you press the tab key, it will display:
|
|||
❯ | ssh
|
||||
my-ip 192.168.50.237
|
||||
mydomain mydomain.example.com
|
||||
no.hostname
|
||||
my-domain-2 mydomain-2.example.com
|
||||
my_domain_3 mydomain_3.example.com
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue