-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be aware of ~/.ssh/config
#12
Comments
It sounds like a good idea, initially, I didn't want to introduce another config (keep the state in one location), but it might be helpful to resolve hosts. |
Well, it is a matter of perspective I guess. The |
Two libraries come to mind to help with this, https://github.com/mikkeloscar/sshconfig and https://github.com/kevinburke/ssh_config. I'm not using any 3rd party SSH library, but the crypto/ssh library provided by go (they only provide agent and knownhosts capability). One interesting note would be to allow regular hosts defined in ssh_config (only for exact hostnames), so you could skip defining anything at all in the |
The current config also does not allow everything possible with ssh alone. For example I'm using JumpProxy ("-J"-Option). That is currently not possible (at least haven't found it). |
Bastion/Jumphost is not yet supported but is next on the list to implement, and I'll look at more ssh options configs to support. |
Should be fixed now with v0.10.3. |
Should work now with https://github.com/alajmo/sake/releases/tag/v0.11.0 |
I am sorry - I must be missing something. The error I am getting is something like this:
|
So it seems to resolve to the correct IP (
So, try changing the port to |
Well - not trying to connect to a k8s host. Just a plain old remote server. However, I totally understand if this is not the design intention. |
I would like it to work with everything that's supported in ssh (and I try to follow their semantics as much as possible), and will try to implement as much as possible, but since I'm relying on Go's crypto/ssh library, some things are not yet available, like (like ControlMaster golang/go#32958). I've also filed a bug with IP6 addresses in known hosts golang/go#53463 (comment)). Concerning your issue, I haven't been able to replicate it, if you could paste the ssh configs which impact how you connect (and try replacing Hostname with HostName, that's a separate issue that I need to fix), it would be of great help. |
With |
Great, thanks for the feature suggestion and finding another small issue with the capitalization. |
Fixed to support lowercase (as ssh does) attributes. |
I was trying to configure a server in sake.yaml, by simply using the hostname as it is written in my
~/.ssh/config
, but realized this does not work.Example
sake.yaml
:Example
~/.ssh/config
:Can this be made to work?
The text was updated successfully, but these errors were encountered: