Questions tagged [ssh-agent]
The ssh-agent tag has no usage guidance.
88
questions
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 ...
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-...
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:...
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?
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, ...
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 ...
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?...
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 ...
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 ...
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 ...
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
⟫ ...
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 ...
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
...
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 ...
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, ...
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 ...
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 ...
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 ...
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?
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 ...
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. ...
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.
...
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 ...
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.
...
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 ...
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 ...
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, ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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. ...
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!
...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...