Created
January 8, 2018 17:22
-
-
Save tombola/8a0ab411d7eda7c50d128c41f7d1701d to your computer and use it in GitHub Desktop.
List ssh aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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