1

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?

1
  • 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
0

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

2
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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