cli / go-gh

A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322 stars 45 forks source link

Resolve ssh hostname aliases with `ssh -G` #84

Closed mislav closed 1 year ago

mislav commented 1 year ago

Going through the ssh executable ensures that hostnames get resolved using ssh's exact mechanism and alleviates the need for manually parsing and interpreting ssh configuration files.

I learned this trick from @cmbrose in https://github.com/cli/cli/pull/5958.

Ref. https://github.com/cli/cli/issues/6455