Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I type "ssh use" in my bash terminal and press tab the command gets completed to "ssh" but that was not what I was looking for. How can I remove that entry from the list of possible completions?

share|improve this question
bash-completion takes its suggestions from several sources, one of them is (for ssh) the contents of ~/.ssh/config - where you can store parameters for your ssh-connections. – guntbert Dec 6 '13 at 23:10
up vote 0 down vote accepted

Removing it from ~/.ssh/known_hosts may work - but this will remove the trusted connection thing if it works at all.

share|improve this answer
Thanks, it worked. Although tab completion now doesn't find anything with that beginning. I thought it should now find the ssh command I use all the time. – Mika Dec 6 '13 at 22:28
I just guessed that it would search the known_hosts file for what to complete - glad it worked =) – Wilf Dec 6 '13 at 22:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.