Closed paolovisintin closed 1 year ago
Hi! Probabily the alias doesn't work because the alias name use whitespaces. I'll check if this is the reason for this issue!
Ok! I must confirm that the issue is related to whitespaces inside alias name. For example:
Host test- lab-personal
Hostname 1.2.3.4
User root
...
When you select this host using hssh c
an error occured.
bash: lab-personal: command not found
Ok, I've now understand the problem. HSSH should try to duplicate the host configuration in the list in this way:
# For example
Host test test2 test3
Hostname 1.2.3.4
Port 22
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
User root
IdentityFile ~/.ssh/id_rsa
the host list should print three entries like:
test -> 1.2.3.4
test2 -> 1.2.3.4
test3 -> 1.2.3.4
Now I'll try to understand how to implement this behavior
@paolovisintin I've created a Draft pull request for this feature #39. After finish some checks and tests I'll merge in master branch and create a new release.
Hello!, when my ssh config has multiple aliases in Host declaration, hssh fails to connect, this is an example: