Questions tagged [ssh-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
38 votes
5 answers
191k views

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the ...
Cuurious's user avatar
  • 393
31 votes
4 answers
152k views

ssh-add command does not add my identity to ssh-agent

I just installed ubuntu 13.10 and I was about to add my identity to my ssh-agent so I open up a Terminal and did this bjorgvin@buntu:~$ ssh-add -l The agent has no identities. bjorgvin@buntu:~$ ssh-...
bjorgvin's user avatar
  • 313
22 votes
2 answers
20k views

How to use multiple ssh keys with different accounts and hosts

i have multiple ssh keys and i have also have account on bitbucket and github. how when ever i use pull it gives me error :/var/www/proj$ git pull origin master conq: repository access denied. fatal:...
Iori's user avatar
  • 1,077
15 votes
1 answer
6k views

What are the differences between keychain and ssh-ident [closed]

I'm considering using a tool to setup my ssh-agent environment so I only need to enter my ssh key once. What is the difference between ssh-ident and keychain? Does one have advantages over the other?
Tom Hale's user avatar
  • 3,518
14 votes
3 answers
4k views

What could be the reason, that private keys are not unlocked?

Since I updated to Ubuntu 17.10 a while ago, my private keys – the which I use for example to access my server via ssh – are not unlocked programmatically after login anymore. My understanding is, ...
user5950's user avatar
  • 6,196
13 votes
3 answers
27k views

How to avoid typing ssh-add everytime

I read and followed some online documentation on how to set up a ssh-agent so that I don't need to type in password every time I ssh to a remote machine. However, with the help of ssh-agent, I still ...
ssgao's user avatar
  • 313
12 votes
3 answers
14k views

Why won't ssh-agent save my unencrypted key for later use?

Every time I SSH into another server from our headless Ubuntu server I am asked for the password to my key file. Even if I have previously connected to the server. Do you have any idea why this maybe?...
Treffynnon's user avatar
10 votes
4 answers
3k views

Doing an ssh-add upon ssh/slogin if key is not in ssh-agent?

When I'm running Gnome, ssh-agent will run ssh-add upon slogin/ssh if the identity is not loaded. I want to mimic this behavior on remote shells, but everything I find suggests to run ssh-add upon ...
Pete Ashdown's user avatar
  • 3,030
9 votes
5 answers
9k views

xubuntu: stop gnome-keyring-daemon from impersonating ssh-agent

I want to use the real ssh-agent instead of gnome-keyring in xubuntu. I followed the steps from http://dtek.net/blog/how-stop-gnome-keyring-clobbering-opensshs-ssh-agent-ubuntu-1204, but gnome keyring ...
JanKanis's user avatar
  • 673
9 votes
2 answers
4k views

Why isn't my keyring in Ubuntu working?

I have encrypted my id_rsa with a password. I think Ubuntu has a keyring system which prevents me from inputting password every time I have to use id_rsa, like git push. Sometimes I don't need to type ...
dspjm's user avatar
  • 280
8 votes
4 answers
5k views

Why can't I interact with my ssh-agent? (e.g. ssh-add -D doesn't work)

On my Kubuntu 14.04 system I'm trying to manage keys with my SSH agent, but somehow it appears to ignore my ssh-add commands. Look at this below and you'll see what I mean. List the current keys ⟫ ...
gertvdijk's user avatar
  • 68k
7 votes
3 answers
9k views

Which private keys are tested by ssh without configuration?

I know there are several questions about ssh keys and how to configure it. But I found none to answer my question. So here it is: I have several ssh keys in my .ssh directory. For some remotes ...
Bertram Nudelbach's user avatar
7 votes
4 answers
3k views

byobu and ssh-agent

byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried ...
ubik's user avatar
  • 71
7 votes
1 answer
3k views

Why do ssh operations always ask for passphrase? (with ed25519)

I just updated my ssh key and added a passphrase, however it constantly nags me for it now, such as when I do a git (or mercurial hg) push. ssh-agent is running: xxx 1303 1118 0 09:16 ? 00:00:00 ...
Gringo Suave's user avatar
7 votes
1 answer
10k views

SSH pubkey authentication works only if another session is already open

Permissions are set correctly on the server (chibi). If I do not have an existing ssh session open to the server, then all new sessions require a password. However if there's already one open, ...
wting's user avatar
  • 384
7 votes
3 answers
1k views

Using PKCS#8 encrypted private keys w/ ssh-agent

I'm setting up a new Ubuntu system (12.04.2 LTS) for Rails development and wanted to use an encrypted SSH private key as per this article. I can set up a standard ssh keypair using the instructions ...
orenyk's user avatar
  • 223
7 votes
0 answers
2k views

How to use normal ssh-agent on 18.04?

I am using an 18.04 installation that has been upgraded from 17.10. When it was on 17.10, I pulled the GNOME SSH/GPG agent out, in favour of using the standard, command-line SSH agent. I wrote up the ...
ticktockhouse's user avatar
6 votes
1 answer
12k views

How to fix "ssh-agent refused operation" on Ubuntu 17.10?

I installed Ubuntu 17.10 on a machine and created an ssh key. However I am not able to use the gnome keyring to unlock this ssh key, I always get the following error message when trying to connect via ...
JHnet's user avatar
  • 161
6 votes
2 answers
10k views

Automating duplicity backups using cron

How do I automate duplicity backups using cron using gpg encryption and the ssh backend?
ppetraki's user avatar
  • 5,483
6 votes
3 answers
7k views

How to manually trigger ssh add dialog box?

Running ssh-add at the command line no longer unlocks the ssh keys properly on my system (Ubuntu 11.10 with Unity). Even after I've run ssh-add, when I ssh to a server, I get a dialog box popping up ...
Hamish Downer's user avatar
6 votes
1 answer
3k views

How to get OpenSSH to use ksshaskpass under KDE?

When using a GNOME desktop on Ubuntu, if I use OpenSSH client to connect to another computer (running from the gnome-terminal), I get a single graphic popup asking for my private key's pass-phrase. ...
Guss's user avatar
  • 3,565
6 votes
2 answers
10k views

ssh-add permanently a key without asking passphrase

I have a private key with a passphrase And I have 2 computers running Ubuntu 14.04 On the first I added the key using ssh-add ~/.ssh/id_rsa It asked me the passphrase, and it was added permanently. ...
vemonet's user avatar
  • 91
6 votes
2 answers
2k views

Use sshfs with ssh-agent and/or kwallet

I am using sshfs with a password protected key pair to mount a remote folder using a shell script. I am also using ssh in that script. Every time I start the shell script I get a password request on ...
Silicomancer's user avatar
6 votes
2 answers
884 views

ssh-agent is not used when ssh is launched from panel launcher (via `gnome-terminal --command`)

I have everything set up so that after I log in and add proper identity to ssh-agent using ssh-add from a gnome-terminal window, I do not have to enter the passphrase again when I invoke ssh myserver. ...
Alois Mahdal's user avatar
5 votes
2 answers
10k views

SSH-Agent can't open a connection to authentication agent?

When I SSH into my firewall server, then attempt to ssh into another machine on the local network from there I get the following error: Could not open a connection to your authentication agent. Is ...
Rob's user avatar
  • 215
5 votes
2 answers
11k views

How to install ssh keychain on Ubuntu with WSL

Please help me understand how to install SSH keychain on my Ubuntu under WSL in order for me to be able to configure my .ssh/config to use it. I'm taking some online training, and I've tried setting ...
Abayomi Usman's user avatar
5 votes
3 answers
2k views

Where is ssh-agent started?

ssh-agent is running but it is not started in any of these files: lightdm-session profile bashrc I have a recollection of seeing the ssh-agent initialization shell routine somewhere on ubuntu, ...
MetaChrome's user avatar
5 votes
1 answer
716 views

Switch to openssh-agent

My problem is to get ssh-agent instead of gnome-keyring up and running on a fresh installation of Ubuntu 16.10. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: ...
max-m's user avatar
  • 181
4 votes
3 answers
8k views

how to use ssh agent forwarding

I have three systems , a client that only install ssh client and server_1 and server_2 . im using ssh public authentication and i can ssh from client to both server_1 and server_2. i saved same pub ...
bojack horseman's user avatar
4 votes
1 answer
1k views

Is there a way to remove all the ssh keys added to ssh-agent when the user locks the system?

I have a bunch of keys added to the ssh-agent, keys to servers, repositories, etc. Is there a way to remove all the ssh keys added to ssh-agent when the user locks the system? My system right now is ...
Starx's user avatar
  • 5,273
3 votes
1 answer
2k views

ssh-agent not working in Kubuntu 19.04

I freshly installed Kubuntu 19.04 but I used my old home folder from Linux Mint. .bashrc and .profile are Kubuntu versions. When using ssh, I everytime need to type my pass phrase. I can manually ...
Powerriegel's user avatar
3 votes
1 answer
3k views

Can't get rid of Gnome SSH Agent

When I type in a terminal git -T [email protected] the dialog with the title "Unlock private key" appears with password entry field. I guess it is Gnome Keyring SSH Agent, and I would like not to use it ...
zuba's user avatar
  • 2,403
3 votes
3 answers
3k views

How to get my ssh passphrase remembered during a Ubuntu session?

If I open a gnome terminal and connect to a server through SSH, I am asked for my passphrase by a text prompt in my terminal instead of a GUI, and, worse, this passphrase is not stored in memory for ...
YS1's user avatar
  • 41
3 votes
1 answer
4k views

Is it possible to keep added ssh keys in ssh-agent after reboot? (using keychain)

Is it possible to keep added ssh keys in ssh-agent after reboot? As I figure out we use keychain to make ssh-agent keep running between logins, Am I right? so, is there anyway to keeps password ...
Ravexina's user avatar
  • 55.7k
3 votes
2 answers
1k views

ssh-agent not accessible within a schroot

I'm using an schroot to do some builds of deployment packages, and there's a lot of to and fro between the host and the schroot environments. Within the schroot the ssh-agent doesn't seem to be ...
KayEss's user avatar
  • 608
3 votes
1 answer
5k views

ssh-agent won't start (even with eval ` `)

I'm pulling my hair out on an ssh-agent issue.. I run a VPS under Ubuntu 16.04 and I setup a private/public key to be able to pull code from my Bitbucket repo. I initialized the repo, it all seemed ...
Buno's user avatar
  • 163
3 votes
0 answers
926 views

ssh-agent running but not working when logged in using PuTTY

When I am using the terminal directly on the machine running Ubuntu 13.04 ssh-add works fine using the process: /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch gnome-...
tsvenson's user avatar
  • 131
3 votes
0 answers
912 views

Despite ssh-agent, TortoiseHG keeps asking for the passphrase

I am using Ubuntu 12.04 and TortoiseHG to access repositories in Bitbucket. I use ssh keys for authentication. I run: ssh-agent then ssh-add and enter my passphrase. I can now use Mercurial and ...
DustByte's user avatar
  • 641
2 votes
1 answer
3k views

Use gnome-keyring as ssh agent instead of openssh

I want to use gnome-keyring in KDE to provide access to ssh passphrases. It is unlocked properly on login and the ssh agent socket is there. My problem is that the openSSH ssh-agent shadows this. ...
Fred Schoen's user avatar
2 votes
2 answers
3k views

Ubuntu 16.04 ssh-add without ssh-agent?

I have configured ssh-agent on many older Ubuntu installations, but today, on my new Ubuntu 16.04 setup, I realized that ssh-add has been working, but I never configured my system to run ssh-agent! ...
Dave's user avatar
  • 3,647
2 votes
2 answers
7k views

ssh-add -l Error connecting to agent: Connection refused

I'm using Ubuntu 18 on Windows Bash When i launch Ubuntu I can ssh-add without any problem. Then I connect to a remote server ssh user@address The ForwardAgent doesn't work (git pull, for example ...
Haim's user avatar
  • 273
2 votes
1 answer
2k views

WSL Ubuntu 18.04 Install SSH key forwarding Issue

I recently updated my WSL Ubuntu install to the 18.04 version available through the Microsoft Store. After the install I ran into issued with the SSH client and the ability to forward keys. So the ...
Brian E's user avatar
  • 21
2 votes
0 answers
2k views

Ubuntu 22.04 LTS: SSH fails with `sign_and_send_pubkey: signing failed: agent refused operation`

I think my question is going to illustrate that I don't understand the relationship between ssh, ssh-agent, and gnome-keyring, but I've tried all of the fixes suggested in response to similar ...
tcquinn's user avatar
  • 256
2 votes
0 answers
2k views

Environment variable SSH_AUTH_SOCK isn't set

Situation: For public key authentication i use Keepass2 with plugin KeeAgent. All is right configured in Keepass2/KeeAgent and the key-pair is generated and the pub-key is copied to the server. ...
A101755's user avatar
  • 51
2 votes
1 answer
671 views

Git can't access SSH key after every laptop restart

So I have set up SSH key on my Ubuntu 20.04 with this guide. The problem is that every time I restart my machine and try to use the SSH key with git pull or some command that requires SSH auth it says ...
crodev's user avatar
  • 161
2 votes
0 answers
201 views

Make SSH agent to confirm the passphrase with interval (AddKeysToAgent confirm interval example)

Right now, the system is asking me for the SSH key passphrase only once during the session. However, I don't find it secure and I would like it to ask me for the password periodically (e.g. every 10 ...
Slava Fomin II's user avatar
2 votes
1 answer
226 views

How can I reinitialize ssh-agent through a remote login after rebooting?

My work computer runs Ubuntu 19.10 and has an ssh-agent setup for password-free connections to some other systems. It was rebooted and now the scripts that relied on not getting password prompts are ...
user5728432's user avatar
2 votes
0 answers
704 views

ssh-add fails when using ed25519 keys [duplicate]

I've been upgrading my ssh keys on all my machines, and came across a bit of weirdness with ssh-add. If I create an ed25519 key and then try to ssh-add it fails. If I take the original rsa key, and ...
TrevorFurnell's user avatar
2 votes
0 answers
3k views

SSH agent forwarding failed on ubuntu 16.04 with error 'sign_and_send_pubkey: signing failed: agent refused operation'

Am trying to use ssh agent forwarding on Ubuntu 16.04 by first making sure the agent is running with the command ssh-agent -s then adding identities with ssh-add and ssh-add -c my_key.pem then ...
jay-mo's user avatar
  • 21
2 votes
1 answer
1k views

How to set up ssh-agent

I have set up ssh-agent. The problem is, it stills asks for a pass-phrase every time! How do I set it up to only ask for a pass-phrase once? It would be best if it only asked when it was first needed, ...
Christopher King's user avatar