Skip to content

Instantly share code, notes, and snippets.

@leveled
Created December 8, 2021 00:38
Show Gist options
  • Save leveled/281945c6466e8f303eea356514aa893f to your computer and use it in GitHub Desktop.
Save leveled/281945c6466e8f303eea356514aa893f to your computer and use it in GitHub Desktop.
Retrieve hostname information from SSH config
ssh -G database | awk '/^hostname / { print $2 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment