ssh-agent

Deployment using ssh with key without providing passphrase for private key (ssh-agent)

不羁岁月 提交于 2019-12-11 10:18:18
问题 Wherein lies the difference between Capistrano and Rocketeer when it comes to the passphrase for a private key? I already have both Capistrano and Rocketeer deployment strategies set up properly and working. Capistrano lets ssh-agent provide the passphrase - Rocketeer, as it seems, does not. The question is not about how but why the passphrase is needed. Background: I want to use Rocketeer for deployment of a Laravel application instead of Capistrano. It seems as if it delegates the SSH

Jenkins ssh-agent starts and then stops immediately in pipeline build

拈花ヽ惹草 提交于 2019-12-10 18:45:37
问题 I have a simple jenkins pipeline build, this is my jenkinsfile: pipeline { agent any stages { stage('deploy-staging') { when { branch 'staging' } steps { sshagent(['my-credentials-id']) { sh('git push joe@repo:project') } } } } } I am using sshagent to push to a git repo on a remote server. I have created credentials that point to a private key file in Jenkins master ~/.ssh. When I run the build, I get this output (I replaced some sensitive info with *'s): [ssh-agent] Using credentials *** (*

Could not open a connection to your authentication agent

寵の児 提交于 2019-12-10 12:32:49
问题 I am running into this error of: $ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. ! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter. I tried to add the keys and I get this error below: $ ssh-add ~/.ssh/id_rsa.pub Could not open a connection to your authentication agent. 回答1: Did You Start ssh-agent ? You might need to start ssh-agent before you run the

ssh-agent doesn't work / save me from typing passphrase for git

徘徊边缘 提交于 2019-12-10 11:47:32
问题 After running eval `ssh-agent -s` ssh-add ~/.ssh/id_rsa and entering my passphrase, git still prompts me to enter the passphrase every time I perform a remote action. To illustrate: bash-4.1$ echo $SSH_AUTH_SOCK /tmp/ssh-cWNDloIzZkhW/agent.5560 bash-4.1$ ssh-add -l 2048 <fingerprint> /cygdrive/c/Users/<username>/.ssh/id_rsa (RSA) bash-4.1$ git pull Enter passphrase for key '/cygdrive/c/Users/<username>/.ssh/id_rsa': 回答1: The problem turns out to be that git was using cygwin's ssh, which looks

Using ssh-agent with jenkins while polling SCM

荒凉一梦 提交于 2019-12-10 09:34:54
问题 Im using the Jenkins ssh-agent plugin in order to give ssh credentials to my builds which works perfectly, however I have it set up to poll the scm (in this case bitbucket git) in order to check for changes. And of course to access the repo in order to poll for changes it also needs those ssh credentials, I cant seem to find anything related to this in the wiki but there must be a way to do so. It seems like such a silly thing for them to not have implemented it, after all if you need ssh

How can I get jenkins-cli.jar to use my ssh agent/keychain?

你离开我真会死。 提交于 2019-12-09 06:19:21
问题 I'm using the jenkins-cli.jar file from my jenkins server, and on every run it prompts me for my ssh key passphrase. I'd like it to use my ssh keychain so I don't have to enter it on every invocation. If it matters, I'm on OSX using the default keychain setup, I don't have a manual ssh-agent configured right now. 回答1: Jenkins CLI client does not support SSH agents for now. As a workaround, you can generate dedicated key without passphrase, associate it with your Jenkins account and instruct

SSH Key-Forwarding using python paramiko

◇◆丶佛笑我妖孽 提交于 2019-12-07 05:25:53
问题 We currently run a script on our desktop that uses paramiko to ssh to a remote linux host. Once we are on the remote linux host we execute another command to log into another remote machine. What we want to do is from paramiko pass the keys to the remote server so we can use them again to ssh to another remote host. This would be the equivalent functionality of 'ssh -A remotehost.com' in linux. 回答1: You can enable SSH agent forwarding for a session in paramiko using AgentRequestHandler. To do

What mechanisms does ssh-agent use to keep unlocked private keys secure in memory?

岁酱吖の 提交于 2019-12-06 09:05:09
问题 I'm working on a library to make quick access to KeepassX database files easier for power users. Right now the application is so short-lived in memory that security around the unencrypted KeePass database is not a huge concern. However, I'd like to add the ability to hold the database unlocked for a period of time in the background, similar to the way the KeepassX GUI does. This would allow immediate query of passwords without being prompted for the master password. This means there would be

ssh-add Could not open a connection to your authentication agent

你。 提交于 2019-12-05 14:01:26
I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything. Do you guys have any ideas why ? VonC Simply upgrade to the latest git for windows ( with a more recent bash, while msysgit is obsolete ) Unzip PortableGit-2.6.2-64-bit.7z.exe anywhere you want, and add C:\path\to

How to extract private keys from an ssh-agent?

不羁岁月 提交于 2019-12-05 12:24:04
问题 ssh-add -l displays that I have 3 RSA keys added to my SSH agent. ssh-add -L displays those public keys. How do I get the private keys as well, so that I can save them to a file? Or is it by design that this is impossible? How does it work then? Can ssh-agent be asked to do operations using the private key? How can I ask it to encrypt/decrypt a number for me? It's OK that I have to write code for this (the programming language doesn't matter), but I'd prefer using an existing tool or a