SSH-agent is an utility which offers a secure way of storing the passphrase of the private key used in SSH connections

learn more… | top users | synonyms

0
votes
1answer
14 views

SSH-Key does not get unlocked even with ssh-add

I'm very confused. Every manual I read the last 15 minutes tells me this should work but it does not: $ ssh-agent -s SSH_AUTH_SOCK=/tmp/ssh-syXn9Tk09V9P/agent.16332; export SSH_AUTH_SOCK; ...
1
vote
1answer
21 views

SSH multi-hop via config file

I would like to login to a remote server by executing sth. like ssh remoteServer. The remote server can only be reached via a login server (which there are two of). There are two routes I would like ...
1
vote
1answer
32 views

Using the key of a computer that I connected to via SSH?

I currently have a system where I'm using a desktop to connect to a gateway and then to multiple servers from there. The ssh key of my desktop is in the gateway and the other servers, and I'm running ...
3
votes
1answer
3k views

SSH - is this the correct way to forward agent?

I have checked many results but not getting exactly that what I am doing for agent forwarding is correct or not. Please advice. I have followed this two links Github unixwiz What I am doing is: ...
0
votes
1answer
47 views

Yet another “ssh agent forwarding not working”

I can ssh from hostA to hostB and from hostA to hostC using keys loaded into ssh-agent without any problems. However, if I do ssh -A hostB from hostA, then try ssh hostC from hostB, public key ...
-1
votes
1answer
47 views

SSH ForwardAgent access to github isn't working

I am working in a team with two other guys. We all have access to a server with our personal SSH keys and we can directly login to the server. We are using ForwardAgent, more specifically all three of ...
1
vote
1answer
49 views

Make SSH_AUTH_SOCK be the same file every time

I need to be able to make ssh-agent use the same file for it's socket every time I log in. Currently it uses a random file in a temp folder, and this is causing issues for a systemd service in vagrant....
2
votes
1answer
124 views

How do I undo an ssh-add on a forwarded identity to access github?

I'm currently trying to access GitHub to clone a repository with SSH. However, when I enter the url to clone, the server hangs after Initialized empty Git repository in /export/home/nathan/myrepo, ...
2
votes
1answer
557 views

ssh-agent running with i3wm keeps promting for password at each git push

I have installed Debian testing with i3wm, using SDDM (Simple Desktop Display Manager) to start it. In the i3 workspace, I could find the ssh-agent process already started. However, I still am being ...
1
vote
1answer
215 views

su - Automatically unlock ssh key

On Linux there exists a tool - I believe it is ssh-agent - that can automatically unlock one's ssh key, so that when using git to fetch from a remote repository it will automatically use ones unlocked ...
0
votes
0answers
217 views

GPG agent dying after 20-30 min with use of YubiKey. Can someone help me debug it?

I have set up my YubiKey NEO to use GPG. I am mostly using it for SSH. But the problem is every 20-30 min I have to kill gpg-agent and restart it because the key stops working. The only clue I have is ...
1
vote
2answers
3k views

Running the output of `ssh-agent` in fish; what does `setenv` do?

When I want to start (or restart) ssh-agent, it gives me a few commands that I should run by doing eval $(ssh-agent). Of course this fails for fish, since it gives syntax for bash or csh. The ...
2
votes
1answer
150 views

libssh2 - Agent Forwarding not working

I am using libssh2 library to ssh connections in my mobile application. Here I want to use Agent Forwarding support. I have followed same procedure as they have provided in example here LibSSH2 Agent ...
7
votes
3answers
1k views

SSH Agent loses identity while restart machine

After creating keys with name id_rsa at it's default location. I am adding identity to SSH agent with command ssh-add ~/.ssh/id_rsa, It's adding successfully. I can SSH without entering pass phrase ...
0
votes
2answers
89 views

force SSH (on client) to ask for password (Xubuntu)

Please, how do I configure the SSH-asking-password politics? I am using hibernate a lot on my laptop. The problem is that when I resume and make a SSH connection which I had already done in the ...
4
votes
1answer
3k views

How to do SSH agent forwarding on Mac terminal?

I have checked many tutorials regarding this but not getting clearly. As per tuts, there are two way to configure for agent forwarding in your config file ~/.ssh/config set Host example.com ...
0
votes
1answer
17 views

ssh-agent fails to remember password

ssh me@server eval $(ssh-agent); set | grep SSH_A SSH_AGENT_PID=19216 SSH_AUTH_SOCK=/tmp/ssh-CYiyq19215/agent.19215 ssh-add Enter passphrase for /home/me/.ssh/id_rsa: Identity added: /home/me/....
0
votes
0answers
111 views

Why is my ssh-agent dying shortly after being started by xinit?

I'm starting i3 window manager using xinit and xsession. My .xinitrc ends with this line: /etc/X11/Xsession /usr/bin/i3 And ssh-agent is started automatically by Xsession: # /etc/X11/Xsession.d/...
1
vote
0answers
83 views

SSH agent forwarding is not working

My SSH agent forwarding is not working. The answer from this question is quite old and the answer is conflicting with the comments. Can we have an updated answer please? Basically I can SSH from ...
2
votes
0answers
181 views

ssh-agent installed with git 1.9.5 faults

I am getting a fault when running ssh-agent from windows 7. I think it could be a permission issue, though UAC is off. ssh-agent.exe SSH_AUTH_SOCK=/tmp/ssh-vDq8tk2Qlatv/agent.10256; export ...
0
votes
0answers
71 views

Usage of ssh-agent with signed SSH keys

My ssh-agent doesn't want to store my credentials for Signed SSH key when connecting to a SSH server that use a SSH CA. I mean, each time i try to logon it ask me for the passphrase of the certified ...
1
vote
1answer
44 views

ssh-add -D deletes keys on originating host

I have an ssh-agent running on my macbook. I use ssh -A and carry the keys forward to my redhat box. The thing that surprises me though is that when I do a 'ssh-add -D' on the redhat box, the keys ...
4
votes
1answer
247 views

ant <scp> support for ssh-agent

I have an existing build.properties file that uses scp like this: <scp todir="${linux.user}@${linux.site}:@{todir}" keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" trust="yes" verbose="@{...
2
votes
0answers
149 views

SSH Agent Forwarding not working even when using `ssh -A`

First of all, I've checked all the following Agent Forwarding not working Extra configuration required for ssh-agent forwarding? SSH Agent Forwarding Not Working http://serverfault.com/questions/...
3
votes
1answer
284 views

Use private keys only from ssh-agent, avoiding “Too many authentication failures”

I store all my private keys encrypted in encfs file. I mount (decrypt) encfs file to folder, add all private keys to ssh-agent with a lifetime flag and unmount folder. In this case my private key ...
0
votes
1answer
224 views

ssh agent forwarding failing at 6 keys

My client is mac os x 10.9.5. I have a bastion host (linux) that I am ssh'ng into. I have agent forwarding working so I can ssh to the bastion host and then ssh into another machine without having ...
0
votes
0answers
78 views

ssh-agent/ssh-add - how can I force confirmation by default?

I use ssh forwarding alot and I'm concerned about "agent hijacking", so, I like to use -c option when calling ssh-add, which enforces confirmation on every key usage. How can I turn the confirmations ...
0
votes
1answer
109 views

ssh-agent on ubuntu rapidly restarts

I am attempting to use ssh-agent on Ubuntu 13.10 so that I will not have to enter my passphrase to unlock a key every time I want to use ssh or git. As you can see below, ssh-agent appears to be ...
2
votes
1answer
653 views

Silence ssh-add

I have a cronjob that runs some tasks, and at the beginning of the script it runs is an ssh-add call ( it doesn't run as the user with the appropriate key so it needs adding, and in future it may well ...
1
vote
0answers
49 views

ssh-agent running differently on two VMs

I have two openSUSE 13.1 VMs. Both have been set up to run ssh-agent and ssh-add when KDE loads up. This is done via the .bash_profile file using the following code: # Load SSH agent SSH_DIR="${HOME}...
1
vote
1answer
233 views

Always being asked for passphrase

I have set up an RSA keypair using How do I set up SSH so I don't have to type my password? But I keep getting prompted for the passphrase Enter passphrase for key '/var/www/.ssh/id_rsa': ...
16
votes
2answers
18k views

ssh-agent / ssh-add error: could not open a connection to your authentication agent

I type in ssh-agent and get the following back: SSH_AUTH_SOCK=/tmp/ssh-GqdeT074HLRJ/agent.4670; export SSH_AUTH_SOCK; SSH_AGENT_ID=4671; export SSH_AGENT_PID; echo Agent pid 4671; I then type in ...
0
votes
1answer
254 views

emacs tramp working with gnome-keyring-daemon

Right now I have gnome-keyring-daemon set to start at login. If I run emacs -q and then open a file on a server using M-x find-file and then enter a file on a remote server such as /ssh:user@server:/...
0
votes
1answer
1k views

SSH ForwardAgent + multi-Host

I have several Hosts in ~/.ssh/config, and they work fine from local machine, but remote machine doesn't know these Hosts. Host A HostName github.com IdentityFile ~/.ssh/A_rsa Host B ...
3
votes
1answer
957 views

How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?

I have a screen session open in an lxterminal window. If I SSH somewhere, the first time it happens, an ssh-agent window opens and asks me for my private key passphrase, and after that ssh goes right ...
2
votes
0answers
821 views

Launchd not launching ssh-agent after plist edit

I'm trying to reconfigure my ssh-agent to have a timeout via the -t argument. I edited /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist <array> <string>/usr/bin/ssh-agent</...
1
vote
1answer
195 views

keychain/ssh-agent loading only one key

My ~/.profile contains the following: SSHAGENT=/usr/bin/ssh-agent SSHAGENTARGS="-s" if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then eval `$SSHAGENT $SSHAGENTARGS` eval `keychain --eval id_rsa ...
1
vote
0answers
56 views

Is the default time for ssh-add configurable in sshd_config?

Is the default time for ssh-add configurable in sshd_config or does it always have to be added on the command line?
0
votes
1answer
220 views

Why does “ssh-agent && ssh-add” only work once?

Have a look at the following shell session: niklas@llw ~ % ssh-agent && ssh-add SSH_AUTH_SOCK=/tmp/ssh-ZzWYJAmK8809/agent.8809; export SSH_AUTH_SOCK; SSH_AGENT_PID=8810; export SSH_AGENT_PID; ...
1
vote
1answer
787 views

Which ssh-agent to connect to when setting SSH_AUTH_SOCK inside screen/tmux?

I am using a variation of the following line: export SSH_AUTH_SOCK=$(find /tmp/ssh-* -name agent.\* -uid $(id -u)|head -n 1) found over at Github. This way I should be able to use my forwarded ...
3
votes
1answer
558 views

Is it possible to have zsh+keychain+tmux not ask for keys?

I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell. ...
5
votes
2answers
6k views

How can I retrieve my ssh passphrase from gnome-keyring?

I forgot the passphrase for my ssh private key, but it's still stored in gnome-keyring, so it seems to me that I should be able to recover it. Seahorse lets me recover web site passwords from my ...
3
votes
1answer
2k views

openssh in Windows 7, run ssh-add once for all cmd instances

I have installed openSSH as part of the latest cygwin distribution. My goal is to use the ssh-agent from native window console (cmd) in order to login passwordless in a various number of Linux ...
2
votes
3answers
453 views

Is it possible to spawn an ssh-agent for a new tmux session?

I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ssh-...
0
votes
1answer
504 views

msysgit on the command prompt without bash

I've got mysysgit setup with Tortoise with PuTTY and ssh. From the Tortoise side everything is working I can clone, pull, push, etc. If I drop to a command prompt and run git I see the help screen so ...
5
votes
3answers
5k views

Git — SSH Agent not working

The back story -- I've been using Git on this computer (Windows XP) for about 8 months with no problem. Suddenly, last week, it is no longer asking me for my username and password when I start Git up. ...
1
vote
1answer
1k views

SSH Agent Forwarding Not Working [closed]

SSH Agent Forwarding stopped working for me. Any ideas as to what might be going on? I'm attaching my logs below: Connecting to the server: http://goo.gl/4xxz9 Connecting to github on server: http:/...
6
votes
1answer
1k views

ssh-agent key timeout with screen or tmux on bastion host

Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point forward....
0
votes
1answer
3k views

ssh-agent and ssh-add

Does anyone know how to make it so that I don't have to add my keys manually using ssh-add? Every time I log into my Ubuntu server box, I have to start the ssh-agent and then use ssh-add before my ...
21
votes
7answers
33k views

How to use SSH private key to log in without entering passphrase every time on Mac OS X Lion?

I use Mac OS X Lion and login remote hosts via SSH every day. Despite the fact that I use SSH key pair for remote authentication and I don't need to motorize every host's login phrase, it is still ...