[resolved] ssh-agent -> The agent has no identities.
This is openssh version on my linuxbox centos 5.2
# ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006 I connected with other box through ssh with password. But by ssh-agent, I could not make any connection. My problem is this. [root@localhost ~]# eval 'ssh-agent -s' SSH_AUTH_SOCK=/tmp/ssh-mgyhm14530/agent.14530; export SSH_AUTH_SOCK; SSH_AGENT_PID=14531; export SSH_AGENT_PID; echo Agent pid 14531; [root@localhost ~]# echo $SSH_AUTH_SOCK /tmp/ssh-bHKeO13270/agent.13270 [root@localhost ~]# echo $SSH_AGENT_PID 13271 [root@localhost ~]# ssh-add [root@localhost ~]# ssh-add -l The agent has no identities. [root@localhost ~]# cd /tmp/ssh-mgyhm14530 [root@localhost ssh-mgyhm14530]# ls -al 12 drwx------ 2 root root 4096 11 19 20:35 . drwxrwxrwt 16 root root 4096 11 19 20:35 .. srw------- 1 root root 0 11 19 20:35 agent.14530 1. Why "ssh-add -l" shows "The agent has no identities"? 2. Why "agent.14530" shows "0 byte"? Here is my sshd-config: Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key SyslogFacility AUTHPRIV #LogLevel INFO RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials yes UsePAM yes AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL X11Forwarding yes Subsystem sftp /usr/libexec/openssh/sftp-server Pleas help me for solving this problem. |
Use backticks around `ssh-agent`, not single quotes. Or use "eval $(ssh-agent)".
|
jschiwal,
Thanks a lot. Quote:
|
All times are GMT -5. The time now is 01:49 PM. |