Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Every time I type "ssh use" in my bash terminal and press tab the command gets completed to "ssh username.dreamhosters.com" 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
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.