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

SSH agent forwarding in Vagrant

I am using Vagrant to spin up a multi-VM environment (VirtualBox Hostonly mode). Each VM has ssh agent forwarding enabled. As "vagrant" user, I am able to connect to my Bitbucket account and checkout repositories from within the VMs. Here are…
Tushar
  • 81
  • 5
0
votes
0 answers

cant git pull/push to github on remote server. although ssh-agent is enable and supposedly forwarding to the remote

My config (ununtu 14.04 and the server ununtu 13.1) following this github tutorial in my home (local) ~.ssh/config: Host * ForwardAgent yes in my global (local) /etc/ssh/ssh_config: Host * # various commented lines SendEnv LANG LC_* …
alonisser
  • 11,542
  • 21
  • 85
  • 139
0
votes
1 answer

Why isn't my bash function executing when I know that the definition is processed?

I have the following in my bashrc: # Set up ssh-agent SSH_ENV="$HOME/.ssh/environment" function start_agent { echo "Initializing new SSH agent..." /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" echo succeeded chmod 600…
Son of the Wai-Pan
  • 12,371
  • 16
  • 46
  • 55
0
votes
1 answer

SSH-agent working over many servers without retyping? Some flag?

Suppose servers myLaptop, A and B. The same ssh-agent should allow me to go over A and B without readding the ssh-agent in the server A to go to B. $ eval `ssh-agent`; ssh-add ~/.ssh/mePriv #In myLaptop $ ssh me@kosh.A.com …
hhh
  • 50,788
  • 62
  • 179
  • 282
0
votes
1 answer

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

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…
XrXr
  • 2,027
  • 1
  • 14
  • 20
0
votes
1 answer

Select SSH identity file when in a session with agent

I am "trying" this in server: # ~/.ssh/config Host github.com IdentityFile xxxx What should I put in xxxx so when I do in server: git clone git@github.com:myuser/myrepo.git Git uses a identity in my local, NOT in server, which is located in…
sites
  • 21,417
  • 17
  • 87
  • 146
0
votes
2 answers

shell script to perform git pull. Problems with password

I wrote a shell script to do project releasing with Git which would be integrated n bamboo, in the shell script I first cd to the Git working copy and then do git pull origin master. But it prompts me for password: git@localhost's password:Any idea…
0
votes
1 answer

SSH and agent for Ubuntu file transfer automation

I had a script which is used to create dumps of Database and transfers the files from Ubuntu server to Linux machine, I use scp for file transfer it prompts for password every time, need to automate it. I had the Rsa public key of Linux in Ubuntu…
jas
  • 1
  • 1
  • 6
0
votes
2 answers

ssh and agent forwarding in ubuntu 12.10

I have a machine X, I login to X and issue an ssh somewhere command which uses key authentication, and it works fine. When I ssh to machine X from a 12.10 machine (which does not have my special machine X keys), and try the same command above, it…
Samer Buna
  • 8,821
  • 9
  • 38
  • 55
0
votes
1 answer

ssh-agent across ssh sessions on shared host

I ssh into a shared host (WebFaction) and then use ssh-agent to establish a connection to a mercurial repository (BitBucket). I call the agent like so: eval `ssh-agent` This then spews out the pid of the agent and sets its relevant environment…
chb
  • 1,727
  • 7
  • 25
  • 47
-1
votes
1 answer

Credentials Changed during the Copy (jenkins)

My credentails which I configure in Jenkins as global credentails chaged during the copy process to remote server. Why? [The 'RSA KEY' changed]
dave vedant
  • 329
  • 2
  • 4
  • 11
-1
votes
1 answer

jq: error: syntax error, unexpected '-', expecting '}' (Unix shell quoting issues?) at , line 1:

I am trying to run some jq command over ssh-agent in a Jenkins pipeline. But I am getting the following error: Trying to run: ` stage("common-infra-deployment"){ steps{ sshagent (credentials:…
-1
votes
1 answer

I can't deploy using sshagent

im learning jenkins for the moment and i had a problem with sshagent . i can't connect to my remote machine . first i'm trying to deploy into kubernetes using jenkins .and i'm using ssh agent to get into kubernetes-master so i can run command from…
-1
votes
1 answer

ssh-add -l: error fetching identities: invalid format

Despite ssh-add claiming my key was succesfully added, it was clear ssh-agent was not fowarding my keys: ssh from remote servers into a second remote serviers were not working; capitrano deploy stoped working The clue was the output: error fetching…
Julien Lamarche
  • 931
  • 1
  • 12
  • 29
-1
votes
1 answer

SSH agent PID initialization error during gdm login

I wanted to start the ssh agent the moment I login to my Ubuntu machine. So I followed http://mah.everybody.org/docs/ssh and appended the following piece of code in my ~/.profile. # # setup ssh-agent # # set environment variables if user's agent…
Black_Zero
  • 445
  • 1
  • 6
  • 12
1 2 3
23
24