Red Hat Bugzilla – Bug 1015935
Bash completion handles HostName entries in .ssh/config that have "%h" incorrectly
Last modified: 2014-11-15 04:09:47 EST
Description of problem:
Bash completion handles HostName entries in .ssh/config that have "%h" in them incorrectly. It displays the string containing %h as a list of ssh targets, which is an error because hostnames of the form %h.domain.com never exist.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add an entry to ~/.ssh/config like the following:
Host red green
2. Type "ssh" and press tab to expand the list of known hosts
The string "%h.acmepaint.com" shows up in the list, ex:
green %h.acmepaint.com red
It should either expand the %h entry as ssh does, or not show it at all. That is, either display
green green.acmepaint.com red red.acmepaint.com
The %h shorthand feature was added in OpenSSH 5.6 to let users create more concise .ssh/config files. The shortcut above replaces these two "spelled out" entries:
Thanks for the report, fixed upstream:
bash-completion-2.1-6.20141110git52d8316.fc21 has been submitted as an update for Fedora 21.
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing bash-completion-2.1-6.20141110git52d8316.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
bash-completion-2.1-6.20141110git52d8316.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.