FS#20775 - [openssh] ssh bash host completion freezes

Attached to Project: Arch Linux
Opened by mavericck (mavericck) - Wednesday, 08 September 2010, 13:09 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 19 February 2011, 18:56 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Guillaume ALAUX (galaux)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:
The bash completion for ssh hosts freezes the shell for about 30 seconds. After that the host is correctly completed.

Additional info:
* openssh 5.6p1-1
* /etc/ssh/ssh_config is set with HashKnownHosts to no

Steps to reproduce:
- connect to a new ssh host, for example hostname.com
- after adding the host public key, connect (i use private/public key auth, but it should work with password auth too)
- logout
- now try to connect again to that host with 'ssh user@hos<tab>'
it freezes, but after 30 sec it completes to 'ssh user@hostname.com'

i can't say in which version it broke.

Some other users reported the same issue: https://bbs.archlinux.org/viewtopic.php?id=104137
This task depends upon

Closed by  Gaetan Bisson (vesath)
Saturday, 19 February 2011, 18:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed since (at least) avahi-0.6.28
Comment by Thomas Bächler (brain0) - Wednesday, 08 September 2010, 17:11 GMT
I experience similar issues with scp: scp doesn't complete local filenames first, instead it calls some avahi-* command that hangs for a while before doing local completion.
Comment by Thiago Coutinho (thiagoc) - Friday, 01 October 2010, 16:16 GMT
starting/restarting avahi-daemon solve this.

This is a bug upstream.

https://bbs.archlinux.org/viewtopic.php?pid=819945
Comment by Thomas Bächler (brain0) - Friday, 01 October 2010, 17:16 GMT
I don't want to run a useless daemon on my machine, and I have yet to find out why I would ever need avahi.
Comment by Matthew (piezoelectric) - Friday, 01 October 2010, 21:45 GMT
I just commented out the avahi bit in /etc/bash_completion. Upstream should probably check to see if the avahi-daemon is running.

Loading...