Description
It's nice to be able to type "ssh nickname" and have the details loaded from your .ssh/config
file:
Host nickname
HostName somerealhost.region.hostingplatform.com
User kevin
IdentityFile ~/.foo/bar
Having to parse this file manually to figure out e.g. which IdentityFile to use and which user to authenticate as is a major blocker to using the primitives in x/crypto/ssh. Maybe it could parse into a map[string]*ssh.ClientConfig
with appropriate defaults chosen.
The closest thing I've been able to find in the wild is https://godoc.org/github.com/moul/advanced-ssh-config/pkg/config, which seems like it should do the right thing. Unfortunately I was unable to use it to successfully parse my own SSH config file; there's some problem with it attempting to use a yaml parser to parse the file, or I'm passing it the wrong thing.
Apologies if this issue has been submitted before, I searched the issues list and couldn't find anything.