Pages: [1]   Go Down
Author Topic: SSH agent does not comunicate with server on FreeBSD  (Read 389 times)
0 Members and 1 Guest are viewing this topic.
admin
Guest
« on: July 07, 2006, 09:33:54 AM »

Hi,

I have a problem with the ssh_agent, it does not work.

I installed the pandora_server and it works. then in another host i installed pandora_agent.
I create a user 'pandora' on the host where is the pandora agent. then i create the ssh keys (public and private). The public i have conserved on the home dir of the users "/home/pandora/.ssh/authorised_keys" and the privat i have put at the server side. Is it right???

then for the first time i make a comunicatio from server to agent with ssh  ??  then i start the pandora_agent  
I am doing right?
but it does not work.

Where is the problem. The ssh  is configured correctly because I make the connectio whith the server and viceversa

hepl .....
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: July 07, 2006, 12:39:04 PM »

Quote

I create a user 'pandora' on the host where is the pandora agent. then i create the ssh keys (public and private).


Oops, there'is the problem, you need to create "pandora" user in the server, not in the agent. You need to generate the sshkeys in the agent for the user you will run, and copy to "pandora" user in the server.

if you could make:

ssh pandora@pandora_server

And you have a successful login in pandora_server from the agent host running the same user that agent will run, pandora_agent must be run fine.

Quote

Where is the problem. The ssh  is configured correctly because I make the connectio whith the server and viceversa


Communication is only from pandora_agent -> pandora_server. You need to check

a) Existence of "pandora" user in pandora server, permissions, home directory, authorized_keys file containing pubkeys from remote user from pandora_agent.
b) Create the pubkeys in pandora_agent for the user you will run pandora_agent with.
c) Create the first ssh conection to validate ssh host key, running manually ssh pandora@pandora_server command and validate the host key.
d) Launch pandora agent :-)

I hope this helps.
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #2 on: July 07, 2006, 01:53:16 PM »

Quote

a) Existence of "pandora" user in pandora server, permissions, home directory, authorized_keys file containing pubkeys from remote user from pandora_agent.

I have the pandora users on the server  and i have the authorized_keys (the pubkey of the user on the pandora agent)

Quote

b) Create the pubkeys in pandora_agent for the user you will run pandora_agent with.

I think that i do not need the pub keys under the pandora agent but I need the private key right ???

Quote

c) Create the first ssh conection to validate ssh host key, running manually ssh pandora@pandora_server command and validate the host key.



I did it ad i make the connection.

Quote

d) Launch pandora agent :-)


I did it to and it's running.

BUT IT DOESN'T WORK :-(
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #3 on: July 07, 2006, 10:44:34 PM »

What do you mean with "doesn't work":

Do you see the .xml data in the output directory that you have set?
Can you see any info in the log of the server or the agent's one?
Did you create the agent into the console using "learning mode"?
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST