-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
RFE: support ssh-agent with ssh communications #3602
Comments
Duplicates #2782. This should work. |
Here are more details: the first two commands show that I have ssh keys loaded and that they admit me to localhost.
Simple test json:
Password auth is turned off in the sshd_config, but let's provide a password anyway and see if it'll use the agent keys.
It just goes on like that until I cancel it. As far as I can see it doesn't attempt to use the keys that should be available through my ssh-agent. |
This issue has been resolved. Example config:
If the private key file from example_keypair is loaded into your ssh agent, you can connect. You will need to set the template option |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When using the
null
builder, especially for test cases, it's inconvenient and insecure to supply a password-less private key file or password for ssh communication. Most devops or sysops users should already be using ssh-agent to securely manage their ssh keys, and many environments won't allow ssh passwords at all.If the environment variable
SSH_AUTH_SOCK
is defined, it's safe to assume that an ssh-agent is available. In that case it should be sufficient to supply a username.The text was updated successfully, but these errors were encountered: