Questions tagged [ssh-agent]

'ssh-agent' is a program that used together with OpenSSH or similar SSH programs provides a secure way of storing the private key. Man Page https://www.freebsd.org/cgi/man.cgi?query=ssh-agent&apropos=0&sektion=0&manpath=FreeBSD+13.1-RELEASE+and+Ports&arch=default&format=html

A password-based authentication process (in the common example of OpenSSH) may be vulnerable to brute-force attacks, if no mechanism is in place to detect them. To mitigate this lack of security, ssh supports public key authentication.

In order to log in securely to a remote system via a secure shell, a private key/public key pair is generated. The private key is stored on the local machine. The public key is stored on the target machine in the $HOME/.ssh/authorized_keys file. Public keys are not sensitive information and may be known to anybody, whereas the private key needs to be protected very carefully by a strong passphrase.

ssh-agent remembers the decrypted private key so that the user does not need to type it every time he or she wants to connect or send data to the server.

Source: Wikipedia (ssh-agent)

348 questions
0
votes
1 answer

set up ssh with ssh-agent for deployment, Problem following instruction from capistranorb.com

I am trying to follow the documentation about authentication & Authorisation on capistranorb.com, but they use github, I use bitbucket. There is one place where I am stuck because output from the console is different. The user named deploy on the…
MDickten
  • 105
  • 1
  • 10
0
votes
0 answers

Deploy with Jenkins into CentOS 7.5 using pipeline script

I need help with pipeline jenkins deploy, I try to deploy a Java webapps from jenkins into CentOS, I always have this error : FATAL: [ssh-agent] Could not find specified credentials [ssh-agent] Looking for ssh-agent implementation... …
Brinis
  • 1
  • 1
0
votes
0 answers

How to execute the remote command in jenkins when target server behind the gateway

I was using the following command to execute the remote commands: ssh -T -F ${ssh_config_path} ${remote_user}@{remote_host} '... here is command string ...' And the ssh_config file likes the following: Host __DASUSM__ User MES Hostname…
0
votes
1 answer

In jenkins ssh-agent plugin can't find credential specified as parameter

I created a credentials parameter TEST_CREDENTIALS , and when i try to inject as ssh plugin agent parameterized as ${TEST_CREDENTIALS}, i see the below error java.io.IOException: [ssh-agent] Could not find specified credentials
Kamaraju
  • 2,365
  • 2
  • 15
  • 17
0
votes
0 answers

is there any other way to push the built project to GitHub in Jenkins pipeline rather than using SSH agent?

I'm using Jenkins pipelines to do project automation. I'm successfully able to build and publish the app but when I try to push the built project into GitHub repository using ssh-agent I get an error as below [Pipeline] { (push to git) …
deepinside
  • 351
  • 1
  • 5
  • 15
0
votes
1 answer

How to ssh-add to a remote server using a passphrase

I need to execute a git command on a remote server and I have a private key with a passphrase. How can I ssh-add my key to the server so I can run git commands there without copying the private key there? I've searched a lot for this, but did not…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
0 answers

Using insecure ssh agent forwarding while pushing/pulling from a repo using git

The situation is as follows. I have my host machine (my laptop). I ssh into Host A which is a development environment. From Host A, I have a git repo that I push/pull from a Gerrit repo. To push/pull, I need to use the ssh key on my host machine, so…
John
  • 37
  • 3
0
votes
1 answer

Alternatives to eval `ssh-agent` and exec ssh-agent bash

Running either of these commands seems to start an SSH agent process successfully: eval `ssh-agent` OR exec ssh-agent bash I'm partial to the first one, because the second exec replaces the shell. Obviously the second, uses eval which is frowned…
SDK
  • 820
  • 1
  • 12
  • 24
0
votes
1 answer

In Jenkins Pipeline why two credentials needed at a time?

I want to connect from Jenkins agent to remote server via SSH and execute the commands. Exactly like said here: sshagent (credentials: ['deploy-dev']) { sh 'ssh -o StrictHostKeyChecking=no -l cloudbees 192.168.1.106 uname -a' } But in example…
Michael A.
  • 1,071
  • 12
  • 21
0
votes
1 answer

Why isn't ssh-agent authenticating the private key's passphrase when I use Ansible?

In short, ssh-agent will authenticate the passphrase when I ssh into the remote server from the command line, but whenever I execute an ansible playbook it asks for the passphrase. My question is, why won't ssh-agent authenticate the passphrase for…
TryHarder
  • 2,704
  • 8
  • 47
  • 65
0
votes
1 answer

Configuring bash environment variables in VSCode

So far I've nearly got the setup I want for using GIT (Windows). All works fine from Git bash with SSH, Passphrases, the SSH config file and SSH-Agent. But I can only communicate with any remote Repo's if I start Visual Studio from GitBash terminal…
ScubaManDan
  • 809
  • 8
  • 22
0
votes
1 answer

ssh agent on windows keep forgetting ssh key

Have a ssh-key here c:/Users/User1/.ssh/github_rsa. I added it to ssh-agent using commands eval $(ssh-agent -s) ssh-add ~/.ssh/githab_rsa After rebooting PC ssh agent does not see my ssh key. I have to add it once more using commands eval…
Leontsev Anton
  • 727
  • 7
  • 12
0
votes
2 answers

Unable to communicate with Bit Bucket while using a ssh key

I am facing some issue while trying to use Git on my computer. I am using bit bucket to host my remote repository. The issue I have is when I'm trying to pull commit from bitbucket, I got the following error: Permission denied (publickey). fatal:…
David Lefaivre
  • 191
  • 3
  • 14
0
votes
2 answers

Issue with code build pushing artifacts back to github

I am trying to run maven release:prepare with aws code build and getting an error saying that The git-push command failed. Command output: error: cannot run ssh: No such file or directory fatal: unable to fork tried passing public and private…
ravi
  • 43
  • 6
0
votes
0 answers

Git command: "WARNING: Could not find ssh-agent" Issue persist

The problem occured after: When installed the Jekyll SEO Plugin with bundle install installing GEM jekyll-sitemap 0.11.0 When added a GEMfile in source file C:\Users\User\Documents\GitHub\PROJECT Other Issues: When I request: Jekyll serve…