The ssh-agent tag has no wiki summary.
24
votes
2answers
17k views
ssh-add complains: Could not open a connection to your authentication agent
I've been trying to get ssh-add working on a RaspberryPi running Raspbian.
I can start ssh-agent, when I do it gives the following output into the terminal:
...
12
votes
4answers
4k views
How can I solve this ssh-agent problem?
I'm using Linux Mint, and have not been able to get gnome-keyring to unlock automatically at login, it seems.
A symptom of my problem is as follows:
$ ssh-add
Identity added: /home/me/.ssh/id_rsa ...
6
votes
2answers
165 views
ssh-agent: don't forward authentication for the whole keyring
I have two private ssh keys :
one to access my personnal machines,
one to access servers at my job.
I add those two keys to my ssh-agent with ssh-add.
Now, when I do ssh -A root@jobsrv I ...
5
votes
3answers
331 views
Remote shell script Enter passphrase for
How can I run a script to log into a remote server and execute a remote ssh command without entering in my passphrase?
For example:
When I log onto a remote server and execute the git pull command I ...
5
votes
1answer
519 views
How to use ssh-agent with multiple (valid) keys and yet choose which one to use?
Let's say there are two keys A and B, both of which are valid for user@host public key authentication. Since authorized_keys is configured for different behaviour depending on the key, ~/.ssh/config ...
4
votes
1answer
431 views
Ssh keeps asking for passphrase several times
I have a remote machine, with which I have set up public-key ssh auth - that is, I can ssh to it without typing in password each time. And I have a set of actions in a script, which use that ssh ...
4
votes
2answers
622 views
How is ssh-agent being autostarted?
I am currently running Crunchbang Linux with Openbox, and as soon as I log in I have an ssh-agent process running and I can't for the life of me figure why it is being autostarted.
Here is the ...
3
votes
1answer
934 views
How to list keys added to ssh-agent with ssh-add?
How and where can I check what keys have been added with ssh-add to my ssh-agent ?
3
votes
3answers
174 views
Must I store a private key in a file?
I have a db-driven application that needs to communicate with another server via ssh. The web app can generate a keypair and give the user the pubkey, or it can accept the unencrypted private key in a ...
3
votes
1answer
163 views
How are loaded SSH keys referenced by name?
I'm using chef's knife ec2 tool which requires the name of a loaded SSH key (that was created in the Amazon EC2 control panel)
It seems strange to me that it uses a name to reference the keypair - ...
3
votes
2answers
518 views
SSH Agent does not work with pkcs8 private key
I did encrypt my private key using openssl pkcs8 -topk8 -in id_rsa -out id_rsa_new -v2 des3 (http://martin.kleppmann.com/2013/05/24/improving-security-of-ssh-private-keys.html)
But now, ssh-agent ...
3
votes
1answer
1k views
tmux on startup and ssh-agent forwarding issue
I've added the following lines (taken from here) to my .bashrc to automatically start a tmux session on login:
if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ]
then
...
2
votes
2answers
144 views
ssh-add on an intermediate ssh hop node
I am on machine A, hopping onto machine B to finally reach machine C.
A --ssh--> B --ssh--> C
When I ssh-add my private key on A, all works fine and I can hop onto B as many times as I want ...
2
votes
3answers
88 views
Is there a way to maintain ssh-agent connectivity in different screens?
Whenever I use ssh-agent for passwordless logins it doesn't work across different logins and screen sessions, even if they are concurrent.
I suspect it uses some shell variables that don't work ...
2
votes
2answers
110 views
Automatically unlock keys on a remote host accessed via SSH
On my local PC my ssh keys are automatically unlocked on login. From there I access via ssh (with key authentication) a server that have stored the same keys I have in the client. I'd like to unlock ...