Facing error: "Could not open a connection to your authentication agent."; trying to add ssh-key.

Posted by Kaustubh P on Server Fault See other posts from Server Fault or by Kaustubh P
Published on 2010-12-28T07:44:59Z Indexed on 2010/12/28 7:55 UTC
Read the original article Hit count: 344

I use ubuntu server 10.04.

ssh-add /foo/cert.pem gave the following output

Could not open a connection to your authentication agent.

These are my running processes:

ps -aux | grep ssh
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      1523  0.0  0.0  49260   632 ?        Ss   Dec25   0:00 /usr/sbin/sshd
root     10023  0.0  0.3 141304  6012 ?        Ss   12:58   0:00 sshd: padmin [priv]
padmin   10117  0.0  0.1 141304  2400 ?        S    12:58   0:00 sshd: padmin@pts/1
padmin   11867  0.0  0.0   7628   964 pts/1    S+   13:06   0:00 grep --color=auto ssh
root     31041  0.0  0.3 141264  5884 ?        Ss   11:24   0:00 sshd: padmin [priv]
padmin   31138  0.0  0.1 141264  2312 ?        S    11:25   0:00 sshd: padmin@pts/0
root     31382  0.0  0.3 139240  5844 ?        Ss   11:26   0:00 sshd: padmin [priv]
padmin   31475  0.0  0.1 139372  2488 ?        S    11:27   0:00 sshd: padmin@notty
padmin   31476  0.0  0.0  12468   964 ?        Ss   11:27   0:00 /usr/lib/openssh/sftp-server

These are my environment variables:

$ env | grep SSH
SSH_CLIENT=192.168.1.13 42626 22
SSH_TTY=/dev/pts/1
SSH_CONNECTION=192.168.1.13 42626 192.168.1.2 22

What is wrong? Why cant I add any identities?

Thanks.

© Server Fault or respective owner

Related posts about ubuntu-server

Related posts about openssh