Skip to content

Instantly share code, notes, and snippets.

@tombola
Created January 8, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tombola/8a0ab411d7eda7c50d128c41f7d1701d to your computer and use it in GitHub Desktop.
Save tombola/8a0ab411d7eda7c50d128c41f7d1701d to your computer and use it in GitHub Desktop.
List ssh aliases
# list ssh host aliases
alias sshhosts="grep -w -i "Host" ~/.ssh/config | sed 's/Host//' | sed 's/[[:blank:]]//g'"
sshhosts | grep '<part-of-host-name>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment