-
Notifications
You must be signed in to change notification settings - Fork 32
Description
My use case for rye is to automate things that I'm doing "manually" via SSH. I have an extensive SSH config (~/.ssh/config) that specifies which keys and users to use for which hosts. I am finding that Rye::Box is not respecting my ssh config. Rye::Box is unaware of the various keys in ~/.ssh and it (obviously) doesn't try to use them when connecting to hosts that specify those keys in ~/.ssh/config.
I did some source diving, and it looks like the only ssh config option that is respected is :port, and to some extent :user. I say "to some extent" because I found in some cases that the user from ~/.ssh/config was not being used, though I see in the source that it should be, via @rye_user. I haven't gotten to the bottom of this yet.
I also use ssh-agent extensively to hold my decrypted private keys in memory. I'm not sure if Rye will use this, and looking at Rye.sshagent_info and @@agent_env -- do these do anything? I see that @@agent_env is initialized to an empty hash -- and then never updated again anywhere.
I really like this project, and I'm eager to use it, but I'm having trouble understanding some of these design decisions. I'd be happy to collaborate and discuss more extensively.