You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I think this shouldn't be in the x/crypto/ssh package. The config file is not a standard, and does not need access to any of the internals of the package.
openssh predates YAML's popularity by a large margin. Are you sure yaml is the right technology for parsing the file?
It's nice to be able to type "ssh nickname" and have the details loaded from your
.ssh/config
file: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.
The text was updated successfully, but these errors were encountered: