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

bjorgvin

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 identities.
bjorgvin@buntu:~$ 

any ideas?

Radu Rădeanu

From man ssh-add:

ssh-add adds private key identities to the authentication agent, ssh-agent(1). When run without arguments, it adds the files ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity.[...]

Identity files should not be readable by anyone but the user. Note that ssh-add ignores identity files if they are accessible by others.

So, because of The agent has no identities. error, you probably don't have those files or maybe those files are accessible by others. You can check these using the following command:

ls -l ~/.ssh

Also, after you run ssh-add command, run echo $? to see the error status of the previous command. If exit status returned 0, the command was executed successfully. If exit status returned a non-zero value, the command failed to execute.

See man ssh-add for more info.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

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

From Dev

`ssh-add <key>` doesn't add my key to the agent

From Dev

ssh keys ssh-agent bash and ssh-add

From Dev

Attempting to add my SSH key to the ssh-agent but getting 'no such file or directory.'

From Dev

openssh: Have ssh add keys to agent as needed

From Dev

Does ssh-agent store my passphrase?

From Dev

What is the difference between ssh-add and ssh-agent?

From Dev

ssh-agent ssh-add ok in user not in sudo

From Dev

How to list keys added to ssh-agent with ssh-add?

From Dev

Ubuntu 16.04 ssh-add without ssh-agent?

From Dev

ssh-add not able to connect to ssh-agent

From Dev

"ssh-add -d" refused to remove identity

From Dev

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

From Dev

gpg-agent refuses SSH keys with ssh-add reporting "agent refused operation"

From Dev

PHP shell_exec ssh-add ssh-agent could not open connection to authentication agent

From Dev

How do I use gpg-agent as with ssh-agent+ssh-add?

From Dev

Can't add generated ssh key to ssh agent "Could not open a connection to your authentication agent"

From Dev

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

From Dev

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

From Dev

How to ssh-add a SSH key without recreating a new instance of SSH agent?

From Java

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

From Dev

Can't add ssh keys to gnupg-agent anymore

From Dev

How to make ssh-agent automatically add the key on demand?

From Dev

How to add a phrase-less key to ssh agent?

From Dev

ssh-add returns with: "Error connecting to agent: No such file or directory"

From Dev

ssh-agent: How to keep the login key, and add more identities?

From Dev

ssh-add complains: Could not open a connection to your authentication agent

From Dev

Does ssh use the ssh-agent?

From Dev

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

Related Related

  1. 1

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

  2. 2

    `ssh-add <key>` doesn't add my key to the agent

  3. 3

    ssh keys ssh-agent bash and ssh-add

  4. 4

    Attempting to add my SSH key to the ssh-agent but getting 'no such file or directory.'

  5. 5

    openssh: Have ssh add keys to agent as needed

  6. 6

    Does ssh-agent store my passphrase?

  7. 7

    What is the difference between ssh-add and ssh-agent?

  8. 8

    ssh-agent ssh-add ok in user not in sudo

  9. 9

    How to list keys added to ssh-agent with ssh-add?

  10. 10

    Ubuntu 16.04 ssh-add without ssh-agent?

  11. 11

    ssh-add not able to connect to ssh-agent

  12. 12

    "ssh-add -d" refused to remove identity

  13. 13

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

  14. 14

    gpg-agent refuses SSH keys with ssh-add reporting "agent refused operation"

  15. 15

    PHP shell_exec ssh-add ssh-agent could not open connection to authentication agent

  16. 16

    How do I use gpg-agent as with ssh-agent+ssh-add?

  17. 17

    Can't add generated ssh key to ssh agent "Could not open a connection to your authentication agent"

  18. 18

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

  19. 19

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

  20. 20

    How to ssh-add a SSH key without recreating a new instance of SSH agent?

  21. 21

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

  22. 22

    Can't add ssh keys to gnupg-agent anymore

  23. 23

    How to make ssh-agent automatically add the key on demand?

  24. 24

    How to add a phrase-less key to ssh agent?

  25. 25

    ssh-add returns with: "Error connecting to agent: No such file or directory"

  26. 26

    ssh-agent: How to keep the login key, and add more identities?

  27. 27

    ssh-add complains: Could not open a connection to your authentication agent

  28. 28

    Does ssh use the ssh-agent?

  29. 29

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

HotTag

Archive