ymnk / jsch-agent-proxy

Other
70 stars 41 forks source link

Support adding keys to agent #30

Closed guw closed 7 years ago

guw commented 7 years ago

The SSH implementation in macOS Sierra changed. Keys are no longer automatically added to the SSH Agent on reboot. Thus, with Sierra I have to manually run ssh-add -K <~/path/to/key> from the terminal in order to have the key added to the agent. Once done, jsch-agent-proxy is able to pick it up.

However, there is a setting to allow SSH to automatically add keys to the agent. Thus, on the terminal I don't have to call ssh-add... . I just execute git pull/push and the key is added. SSH still uses the passphrase from the keychain.

http://superuser.com/questions/325662/how-to-make-ssh-agent-automatically-add-the-key-on-demand

Can the AddKeysToAgent option somehow be supported by jsch-agent-proxy? Ideally I want a password less operation from within Eclipse - without running ssh-add on the terminal first.

guw commented 7 years ago

I found a workaround for macOS: https://github.com/jirsbek/SSH-keys-in-macOS-Sierra-keychain