bash-completion doesn't work with ssh

Bug #55450 reported by acoster
This bug report is a duplicate of:  Bug #42382: bash completion does not work for ssh. Edit Remove
4
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bash

When you press tab when typing the ssh command, it is either ignored (if you started have already typed something and you don't have a preceding space or an @), or you get |1| instead of any data at all.

Examples:
ssh <tab> becomes ssh |1|
ssh xxx@p stills the same, even if you have a host begining with p on your known_hosts list.
ssh xxx@<tab> becomes ssh xxx@|1|

Revision history for this message
Aldous Peñaranda (dous) wrote :

For: ssh<tab>, well, there are other commands that start with ssh...

 * ssh-add
 * ssh-agent
 * etc...

Revision history for this message
acoster (acoster) wrote :

That's not the point. I don't mean the built-in bash filename/command name completion, but the script that, among other things, parses your known hosts list _when_ you use ssh...

Revision history for this message
Aldous Peñaranda (dous) wrote :

Okay, got it. :)

I'm using Dapper and it's currently using the hosts file (/etc/hosts).

Revision history for this message
Aldous Peñaranda (dous) wrote :

I just remembered something...

I checked my ~/.ssh/known_hosts file and everything is "garbled". I think I read somewhere that you can't decrypt this new format (of course, I may be wrong). It would be difficult to include the functionality to parse this file if that is the case.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 55450] bash-completion doesn't work with ssh

 status Rejected

ssh now by default has "HashKnownHosts yes" -- to disable that:

echo "HashKnownHosts no" >> ~/.ssh/config

Changed in bash:
status: Unconfirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.