Skip to content
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

Rudimentary ssh-agent support: #134

Merged
merged 1 commit into from
Apr 20, 2017
Merged

Conversation

sterin
Copy link
Contributor

@sterin sterin commented Feb 26, 2017

This adds minimal support for ssh-agent, addressing issue #35. It passes the agent option from the configuration file up to the ssh2 library.

An example configuration (in addition to other options):

"host": "my.ssh.server",
"port": 22,
"username": "username",
"protocol": "sftp",
"agent": "SSH_AGENT",

where SSH_AGENT is either paegent on Windows, or the contents of the SSH_AUTH_SOCK environment variable on Linux or macOS (see the documentation of ssh2 for details). When using the agent, there is no need to specify the password, passphrase or private key path.

Pass the agent option to ssh2.
@hajekj hajekj merged commit 34075b5 into lukasz-wronski:master Apr 20, 2017
@jsmilovic jsmilovic mentioned this pull request Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants