Questions tagged [ssh-agent]

94 questions
38
votes
5 answers

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 public-keys from A to B as well as B to A. The…
Cuurious
  • 393
32
votes
4 answers

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-add bjorgvin@buntu:~$ ssh-add -l The agent has no…
bjorgvin
  • 323
22
votes
2 answers

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: The remote end hung up unexpectedly or if i ssh…
Iori
  • 1,077
15
votes
1 answer

What are the differences between keychain and ssh-ident

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
  • 3,728
14
votes
3 answers

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, that usually the seahorse client should take care…
user5950
  • 6,406
13
votes
3 answers

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 need to do ssh-add every time I restart the shell.…
ssgao
  • 313
12
votes
3 answers

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? It could be something as simple as ssh-agent not…
10
votes
4 answers

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 login. I only want to run ssh-add if I…
Pete Ashdown
  • 3,230
9
votes
2 answers

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 in the password, sometimes I do. When I…
dspjm
  • 280
9
votes
4 answers

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 ⟫ ssh-add -l 2048…
gertvdijk
  • 69,427
9
votes
5 answers

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 still registers itself as ssh-agent. I still…
JanKanis
  • 683
8
votes
3 answers

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 different keys. Now I have neither configured in…
7
votes
1 answer

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: Ubuntu 16.10 Release: 16.10 Codename: …
max-m
  • 211
7
votes
1 answer

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 /usr/bin/ssh-agent /usr/bin/dbus-launch…
7
votes
1 answer

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, additional ssh sessions authenticate with pubkey…
wting
  • 394
1
2 3 4 5 6 7