LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-19-2008, 05:45 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
[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.

Last edited by windstory; 11-19-2008 at 06:47 PM.
 
Old 11-19-2008, 07:25 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use backticks around `ssh-agent`, not single quotes. Or use "eval $(ssh-agent)".
 
Old 11-19-2008, 06:45 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
jschiwal,

Thanks a lot.


Quote:
Originally Posted by jschiwal View Post
Use backticks around `ssh-agent`, not single quotes. Or use "eval $(ssh-agent)".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Agent Configuration Agent (use Oracle with Linux) shipon_97 Linux - Enterprise 0 02-02-2007 12:11 AM
using ssh-agent Jzarecta Linux - Security 1 01-30-2007 05:28 PM
can't find ide.agent & block.agent for hotplug for 2.6 jg167 Linux - Newbie 1 06-23-2004 05:20 PM
Hotplug problems: RH 9, 2.6.6, PCMCIA-CS 3.2.7 (missing ide.agent & block.agent) jg167 Red Hat 1 06-23-2004 05:18 PM
ssh-agent podollb Linux - Networking 15 10-16-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration