ssh autocomplete

complete -W "$(echo $(grep '^ssh ' .bash_history | sort -u | sed 's/^ssh //'))" ssh
Stop tormenting the poor animal cat. See Edit: replaced sort | uniq by sort -u

By: 0x89
2009-07-25 23:07:25

8 Alternatives + Submit Alt

What Others Think

Really good
CodSpirit · 621 weeks and 3 days ago
This only works if your ~/.ssh/known_hosts file is not hashed, as is default on many modern GNU/Linux systems. Of course, you can turn off the security, for the ease of convenience. I wouldn't recommend it.
atoponce · 495 weeks ago
I have been checking a lot of different forums so that I can write a review for them at the cv writing services and other aforementioned details need to be taken care of as well. Thee are so many people who look for new forums on their website.
Aaron12 · 44 weeks and 2 days ago
Im Falle unserer Kaufzusage garantieren wir Ihnen auch in finanzieller Hinsicht eine reibungslose und schnelle Abwicklung. Für den Ankauf von Immobilien mit einem Volumen von bis 25 Millionen Euro benötigen wir keine Finanzierung. Das bedeutet, dass wir nicht auf Kreditzusagen angewiesen sind und damit den Kauf bankunabhängig mit eigenen Mitteln abwickeln können. Unmittelbar nach unserer Kaufentscheidung lassen wir Ihnen eine Finanzierungsbestätigung von der deutschen Bank zukommen.
Aaron12 · 43 weeks ago
?????? ???? ???? "????? ????" ???? ??? ??? ?? ?????? ??????? ?????? ????? ?????? ????? ???? ! ????? ??? ????? ??? ???? ?? ?????? ???? ????? ???.
Aaron12 · 43 weeks ago
Als Spezialisten für Off Market Immobilien pflegen wir Diskretion und Vertrauen als unsere obersten Prinzipien.
Aaron12 · 42 weeks and 4 days ago
Via Off Market Immobilienvermittlung verkaufen Sie Ihre Immobilie diskret und geräuschlos, ohne in Internetportalen und Printmedien sichtbar zu sein. Wir haben uns als Immobilienmakler auf OTC Immobilien spezialisiert, das sind Immobilien, die „over the counter“, das heißt außerhalb des öffentlichen Immobilienmarktes vermarktet und verkauft werden.
Aaron12 · 42 weeks and 3 days ago
As a programmer I really found this article to be very informative. This answers the question what is .net framework very precisely. I really recommend to all computer geeks to check it out!
Aaron12 · 42 weeks and 1 day ago
Unsere Kernbereiche sind Immobilien Vermittlung, Immobilien Ankauf, Immobilien Verkauf und Immobilien Bestandshaltung. Als Immobilien Franchise Unternehmen sind wir aus den früheren „Erdogdu Immobilien“ hervorgegangen.
Aaron12 · 42 weeks and 1 day ago
In this webcast, the current government has been considerately condemned amusingly. Once visit grammar and plagiarism for more details. The parody contact present in this webcast is so flawless.
anonymous11 · 38 weeks and 4 days ago
I am seeing a ton of alterations and upgradations in this base arrangement. Visit this article for more guidance. These all around required changes have made this base arrangement unique.
anonymous11 · 38 weeks and 4 days ago
Fuels are way clearly better than the workstations since it doesn't contain such an interferences. A PC can be used for various reasons while Kindles must be used for instructive purposes. Click to read wonderful ideas. That is the explanation Kindles are better for instructive purposes.
anonymous11 · 38 weeks ago
Thanks to the creator for writing the post, it was quite necessary for me and liked it. I wrote a note on the about this. I will be happy if you read it and accept it. Thank you for your concern.
Faucher · 32 weeks and 3 days ago
Thanks to the creator for writing the post, it was quite necessary for me and liked it. I wrote a note on the about this. I will be happy if you read it and accept it. Thank you for your concern.
Faucher · 32 weeks and 3 days ago
I am making engaged records from two every year earlier. Starting at now, I am palatable at making accounts. Click copy and paste checker for more ideas. In any case, I make a decent undertaking to make myself more beneficial and energized.
Ahmed74 · 30 weeks and 1 day ago
This article is phenomenally helpful for such people who have starting late began their appraisal. Visit for more ideas. This article has ensured about a few obliging things for the specialists.
Ahmed74 · 30 weeks and 1 day ago
Virginia, a southeastern U.S. state, stretches from the Chesapeake Bay to the Appalachian Mountains, with a long Atlantic coastline. While MaxRemind top rank medical billing company of USA offers Medical Billing Services Virginia , we also offer medical credentialing services in Virginia.
stevematt · 22 weeks ago
The instructions are clear and I am able to troubleshoot my code by doing this.
MarkMatthews · 9 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: