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

how add public key to ssh-agent permanently

I added my existed public key to ssh-agent but after restarting I need to run ssh-add ~/.ssh/id_rsa to add it again. Is there a way to add it permanently?
Mini
  • 1,138
  • 9
  • 24
0
votes
1 answer

SSH Remote Command Hangs

Does anyone know why this command, ssh -v user@address "exec ssh-agent bash" ...would hang on this output? debug1: Sending command: exec ssh-agent bash I'm trying to automatically setup a set of remote machines so they can SSH into each other…
135498
  • 251
  • 1
  • 4
  • 6
0
votes
0 answers

ssh-agent don't work,i cannot connect to my git server

[suiyimen@localhost ~]$ ssh-add ~/.ssh/id_rsa_git but return no such device or address [suiyimen@localhost ~]$ ls -la ~/.ssh it shows: id_rsa_git -> /tmp/ssh-DvbhW17778/agent.17778 I don't what do this mean.how can i solve the problem.I cannot git…
gwl002
  • 1
  • 1
0
votes
0 answers

Still able to clone git repo while ssh-agent is down

I have created ssh key pair. Started ssh-agent on ubuntu, added the key into the agent and put the public key to github account. Was able to clone the repo with no password. The only thing I cannot understand, why I still able to clone the repo…
0
votes
1 answer

How can I enter my passphrase only once in Git CMD?

After installing Git for Windows, I am using Git CMD (not Git Bash). I have a passphrase-protected private key stored at %USERPROFILE%/.ssh/id_rsa I am running a script that performs Git actions on multiple repos. Every time it interacts with a new…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
0
votes
1 answer

Jenkins Pipelines with Gradle release plugin

I'm using Jenkins Pipelines to build my packages and deliver them to Artifactory. I'm trying to use it with Gradle, through the Gradle Release Plugin, but there's something wrong with it. I'm starting a ssh-agent so that Gradle has the permission to…
frinux
  • 2,052
  • 6
  • 26
  • 47
0
votes
2 answers

Getting "TypeError: 'NoneType' object is not iterable" while doing parallel ssh

I am trying to do parallel ssh on servers. While doing this, i am getting "TypeError: 'NoneType' object is not iterable" this error. Kindly help. My script is below from pssh import ParallelSSHClient from pssh.exceptions import…
0
votes
1 answer

In which directory or filepath are you supposed to run eval ssh-agent?

I'm building out a couple git users on my PC(ubuntu) to practice workflow on Github and was using this website to build out the users. I'm at the 3rd part and just typed in eval '$(ssh-agent)' but get back bash:…
akantoword
  • 2,824
  • 8
  • 26
  • 43
0
votes
1 answer

Script to perform a git pull via ssh and bypass passphrase requirements?

I'm trying to set up continuous integration with Bamboo. I want to configure a task that ssh's into our stage server, cd's into the proper directory and performs a git pull. I've been able to set up the ssh task, but doing the git pull has been…
BarFooBar
  • 1,086
  • 2
  • 13
  • 32
0
votes
2 answers

phpseclib - SSH_AUTH_SOCK not found

I work with another company that is moving from regular FTP to SFTP for their connections. They have informed me that my existing username and password are the same, but that I now need to connect via SFTP on port 22. I have a couple of PHP scripts…
Bill Smith
  • 30
  • 1
  • 4
0
votes
1 answer

Killing spawned instance of ssh-agent while stopping the upstart job

I have an upstart configuration to start my daemon process(which makes ssh connection to other servers every time). To make ssh connection, it uses keys stored in ssh-agent. So in start script I am creating an instance of ssh-agent but while…
Royal Pinto
  • 2,869
  • 8
  • 27
  • 39
0
votes
1 answer

ssh-add adds incorrect key

Background: I am trying to write a jenkins job which deploys a rails app using capistrano. As part of this, I need to add the ssh key which I have copied to the jenkins user's .ssh folder on that environment. I have correctly set the owner, group…
eikumbokum
  • 41
  • 8
0
votes
1 answer

Start ssh-agent on login with multiple identities

I have multiple ssh rsa keys on my computer that I use. That led me to having a file located at ~/.ssh/config that looks like this: #Bit Bucket Account Host bitbucketid HostName bitbucket.org PreferredAuthentications publickey IdentityFile…
Daniel
  • 2,950
  • 2
  • 25
  • 45
0
votes
1 answer

Storing ssh passphrase on an external drive

In order to access a server we use ssh where the keys protected by a passphrase. We want to generate a long passphrase such that the keys themselves are not enough to access that machine and the passphrase is hard to hack. ssh-agent can store…
Willem Van Onsem
  • 443,496
  • 30
  • 428
  • 555
0
votes
1 answer

SSH-ADD Key getting Flushed

I recently switch to Mac from an Ubuntu box and I'm facing this odd ssh issue which I'm not able to understand why? Every time I restart/reboot by Mac by private key which was added ssh lists using ssh-add keep getting flushed ssh-add -l The agent…
Viren
  • 5,812
  • 6
  • 45
  • 98