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, 2013 at 23:10

1 Answer 1

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, 2013 at 22:28
  • I just guessed that it would search the known_hosts file for what to complete - glad it worked =)
    – Wilf
    Dec 6, 2013 at 22:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .