-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug in SSH-Autocomplete with non-standard ports #1355
Comments
Probably
|
+1. I wanted to report this a long time ago (my server runs on port 98), but I guess I forgot. Also, consider it to be confirmed since introduction of |
If anyone wants to fix up the print_hostnames regex to handle this case, jump in! |
I proposed a fix for this in my pull request. On my system it does work. @xfix PTAL whether it also works for you… |
I've got fish
But typing |
Yes, this regressed in fbd53f2. I'll open a new issue. |
As a fish-shell user I want to use command autocompletion for the
ssh
-command even when I'm working a lot with server listening on non-standard ports.Expected behavior:
ssh myser<tab>
ssh myserver.hoster.domain.tld
ssh -p2022 myserver.hoster.domain.tld
Actual behavior:
ssh myser<tab>
ssh \[myserver.hoster.domain.tld\]:2022
Either the port should get added as
-p 2022
or it should completely be ignored as most people working with a lot of those special cases already have specific rulesets in their~/.ssh/config
to handle those non-standard ports.Reason
Standard-port-servers are added like this in
~/.ssh/known_hosts
:Non-standard-port-servers are added like this:
System
OSX 10.9.2
The text was updated successfully, but these errors were encountered: