Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Agent problem

    Posted by timtimhk on May 3, 2007 at 09:47

    When I Enter
    /opt/pandora_agent/pandora_agent_daemon start

    it show
    pandora Agent is now running with PID 18592
    [root@localhost root]# Password:

    I have not set password for the server or agent show what is the password from?

    raul replied 17 years, 9 months ago 3 Members · 8 Replies
  • 8 Replies
  • raul

    Member
    May 3, 2007 at 10:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    When I Enter
    /opt/pandora_agent/pandora_agent_daemon start

    it show
    pandora Agent is now running with PID 18592
    [root@localhost root]# Password:

    I have not set password for the server or agent show what is the password from?

    Have you created the openssh keys WITHOUT password to connect Agent and Server?

  • timtimhk

    Member
    May 3, 2007 at 10:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    When I Enter
    /opt/pandora_agent/pandora_agent_daemon start

    it show
    pandora Agent is now running with PID 18592
    [root@localhost root]# Password:

    I have not set password for the server or agent show what is the password from?

    Have you created the openssh keys WITHOUT password to connect Agent and Server?

    yes, i enter ssh-keygen
    then it display enter passphase,i press enter too,i have not enter password

  • manu

    Member
    May 3, 2007 at 11:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to copy your public key into the pandora’s server home authorhized_keys file, which is in .ssh/

    If not, you won’t be able to connect without password.

  • timtimhk

    Member
    May 4, 2007 at 05:04
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to copy your public key into the pandora’s server home authorhized_keys file, which is in .ssh/

    If not, you won’t be able to connect without password.

    how to make a authorhized_key?i use ssh-keygen ,but it cant make..

  • raul

    Member
    May 4, 2007 at 10:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to copy your public key into the pandora’s server home authorhized_keys file, which is in .ssh/

    If not, you won’t be able to connect without password.

    how to make a authorhized_key?i use ssh-keygen ,but it cant make..

    This is an example to generate the keys and copy them to the /home/pandora/.ssh/authorized_keys directory:
    [code:1]
    pandora@membrillo:~$ ssh-keygen -t dsa
    Generating public/private dsa key pair.
    Enter file in which to save the key (/home/pandora/.ssh/id_dsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/pandora/.ssh/id_dsa.
    Your public key has been saved in /home/pandora/.ssh/id_dsa.pub.
    The key fingerprint is:
    68:c3:6f:18:bb:c6:c5:f2:9a:d1:66:ce:42:f0:3f:f1 pandora@membrillo

    pandora@membrillo:~$

    The agent have to use this key to comunicate to the server.

    As shown in the pandora_installation guide, http://pandora.sourceforge.net/docs/pandora_en.pdf (chapter 2, pag 26):

    To generate the keys the command ssh-keygen is executed followed by the specific parameters for our
    operating system. Please, create key WITHOUT password.
    The public key must be copied into the /home/pandora/.ssh/authorized_keys file in the Pandora
    server.

    Before starting the Pandora agent the SSH authentication must be checked.

    To do this the
    following command must be executed on the agent machine:
    $ ssh pandora@pandora_server
    The system must connect successfully BEFORE launching the Pandora agent.

    Raul

  • timtimhk

    Member
    May 4, 2007 at 13:25
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to copy your public key into the pandora’s server home authorhized_keys file, which is in .ssh/

    If not, you won’t be able to connect without password.

    how to make a authorhized_key?i use ssh-keygen ,but it cant make..

    This is an example to generate the keys and copy them to the /home/pandora/.ssh/authorized_keys directory:

    pandora@membrillo:~$ ssh-keygen -t dsa
    Generating public/private dsa key pair.
    Enter file in which to save the key (/home/pandora/.ssh/id_dsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/pandora/.ssh/id_dsa.
    Your public key has been saved in /home/pandora/.ssh/id_dsa.pub.
    The key fingerprint is:
    68:c3:6f:18:bb:c6:c5:f2:9a:d1:66:ce:42:f0:3f:f1 pandora@membrillo
    
    pandora@membrillo:~$
    

    The agent have to use this key to comunicate to the server.

    As shown in the pandora_installation guide, http://pandora.sourceforge.net/docs/pandora_en.pdf (chapter 2, pag 26):

    To generate the keys the command ssh-keygen is executed followed by the specific parameters for our
    operating system. Please, create key WITHOUT password.
    The public key must be copied into the /home/pandora/.ssh/authorized_keys file in the Pandora
    server.

    Before starting the Pandora agent the SSH authentication must be checked.

    To do this the
    following command must be executed on the agent machine:
    $ ssh pandora@pandora_server
    The system must connect successfully BEFORE launching the Pandora agent.

    Raul

    but how to generate authorized_keys file?

  • manu

    Member
    May 4, 2007 at 13:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You should have it on your /home/user/.ssh/

    If not just generate it with touch and make sure it has 600 perms and belongs to the user which home are you going to place the file in.

    Then just copy the content of the id_dsa.pub into the authorized file

  • raul

    Member
    May 4, 2007 at 14:32
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    [code:1]pandora@membrillo:~$ touch .ssh/authorized_keys
    pandora@membrillo:~$ chmod 600 .ssh/authorized_keys