Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple 'Host' aliases are not handled gracefully #28

Open
jg3 opened this issue Jan 9, 2024 · 1 comment
Open

Multiple 'Host' aliases are not handled gracefully #28

jg3 opened this issue Jan 9, 2024 · 1 comment

Comments

@jg3
Copy link

jg3 commented Jan 9, 2024

In the SSH config file, multiple space-separated entries on the Host line can resolve to the same set of configuration options. For example:

Host pear peach plum 
     Hostname %h.orchard.gardenparty.org
     user farmer
     IdentityFile ~/.ssh/id_rsa_orchard_20240109

In this case there are three different hostnames our farmer@ might want to get connected to with this private key and other settings. But sshto will only show the first host, pear, leaving no way within sshto for the user to connect to host peach or plum.

This is an enhancement request to render those space-separated aliases on the Host line as individual hosts.

One possible workaround would be for the user to manage a (far more verbose) .ssh/config file with a separate identical entry for each host. The challenge there is it would hamper adoption from users who have a maintained their config file manually, efficiently so far.

Another consideration is there are wildcard options for both the Host and Hostname parts of the configuration here that could expand beyond what sshto could possibly know from the config file, potentially making a need for another interactive dialog.

@vaniacer
Copy link
Owner

Hi, thank you for pointing into this, I'll check what could be done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants