Skip to content

Instantly share code, notes, and snippets.

@WarpEngineer
Last active November 14, 2015 01:12
Show Gist options
  • Select an option

  • Save WarpEngineer/0061210e10723539caad to your computer and use it in GitHub Desktop.

Select an option

Save WarpEngineer/0061210e10723539caad to your computer and use it in GitHub Desktop.
Easily list the hosts in ssh's config file.
function ssh-menu() {
cat ~/.ssh/config | grep "^Host " | awk '{$1="";print NR,$0}' | more
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment