Posted By

endorfin on 10/16/08


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Shocm
esritter
WaxWing


SSH tab completion


 / Published in: Bash
 

tab completion is something we use all day long. put this into your .bash_profile. You can use tabs to auto complete the hostname for ssh calls.

  1. complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh

Report this snippet  

You need to login to post a comment.