Pandora FMS Community

Win10 agent & ssh commmunications

j-k · 25 ago 2018, 20:33 · 2 mensajes · 63 visitas

  1. Inicio del debate

    I installed pandora agent into a Win10 PC, PandoraFMS is running in an Ubuntu box. Default installation seems to use tentacle communications. After successfull install I run command: pandoraagent --test-ssh which echoed: "SSH test was successful". It did not ask any password, so login was made with key/certificate. Agent keys are in /key directory: id_dsa, id_dsa.pub both dated on 17.5.2017. User pandora@pandoraFMS-server does not have any new keys on .ssh/authorized_keys so it seems that pandoraagent did not copy any key to Pandora FMS server.        EDIT: It seems that id_dsa, id_dsa.pub are required for pandoraagent.exe --test-ssh to run. With those files in C:Program Filespandora_agentkey directory output is like this: C:Program Filespandora_agent>pandoraagent --test-ssh Public key file C:Program Filespandora_agentkeyid_dsa.pub exists. Private key file: C:Program Filespandora_agentkeyid_dsa exists. Connecting with xx.xx.xx.xx. Authentication successful. Host fingerprint: Created a blank XML file in C:Program Filespandora_agenttempssh.test Remote copying C:Program Filespandora_agenttempssh.test on server xx.xx.xx.xx. at /var/spool/pandora/data_in/ssh.test Successfuly file copied to remote host Successfuly disconnected from remote host The SSH test was successful! C:Program Filespandora_agent> However: Although I stopped pandora server, the file /var/spool/pandora/data_in/ssh.test was not there so maybe ssh test failed although output says it was a success. The empty "host fingerprint" can also be a sign of failed test. Agent connection is working fine with tentacle, but ssh connection is not working. I can connect from agent win10 PC as user admin to pandora fms server as user pandora without password but pandora agent does not write anything into server data_in directory. I have done this: 1) Win10 client: As administrator generate new key/certificate pair files id_rsa, id_rsa.pub with no passphrase, stored in default location admin.ssh 2) Win10 client: As administrator Copy generated files into "Program Files"pandora_agentkey. 3) Pandora server: Manually add contents of id_rsa.pub into file /home/pandora/.ssh/authorized_keys 4) Win10 client: Modify agent conf file, protocol ssh, port 22 But it is still not working. Any ideas what's wrong? What is the user account running pandora agent in win10? I have here assumed that it is admin account. Thank you for your support!

  2. I installed pandora agent into a Win10 PC, PandoraFMS is running in an Ubuntu box. Default installation seems to use tentacle communications. After successfull install I run command: pandoraagent --test-ssh which echoed: "SSH test was successful". It did not ask any password, so login was made with key/certificate. Agent keys are in /key directory: id_dsa, id_dsa.pub both dated on 17.5.2017. User pandora@pandoraFMS-server does not have any new keys on .ssh/authorized_keys so it seems that pandoraagent did not copy any key to Pandora FMS server.        EDIT: It seems that id_dsa, id_dsa.pub are required for pandoraagent.exe --test-ssh to run. With those files in C:Program Filespandora_agentkey directory output is like this: C:Program Filespandora_agent>pandoraagent --test-ssh Public key file C:Program Filespandora_agentkeyid_dsa.pub exists. Private key file: C:Program Filespandora_agentkeyid_dsa exists. Connecting with xx.xx.xx.xx. Authentication successful. Host fingerprint: Created a blank XML file in C:Program Filespandora_agenttempssh.test Remote copying C:Program Filespandora_agenttempssh.test on server xx.xx.xx.xx. at /var/spool/pandora/data_in/ssh.test Successfuly file copied to remote host Successfuly disconnected from remote host The SSH test was successful! C:Program Filespandora_agent> However: Although I stopped pandora server, the file /var/spool/pandora/data_in/ssh.test was not there so maybe ssh test failed although output says it was a success. The empty "host fingerprint" can also be a sign of failed test. Agent connection is working fine with tentacle, but ssh connection is not working. I can connect from agent win10 PC as user admin to pandora fms server as user pandora without password but pandora agent does not write anything into server data_in directory. I have done this: 1) Win10 client: As administrator generate new key/certificate pair files id_rsa, id_rsa.pub with no passphrase, stored in default location admin.ssh 2) Win10 client: As administrator Copy generated files into "Program Files"pandora_agentkey. 3) Pandora server: Manually add contents of id_rsa.pub into file /home/pandora/.ssh/authorized_keys 4) Win10 client: Modify agent conf file, protocol ssh, port 22 But it is still not working. Any ideas what's wrong? What is the user account running pandora agent in win10? I have here assumed that it is admin account. Thank you for your support!

    Good morning j-k, Please try to read this doc that i give you, and follow the steps describe to configure the data in Pandora with SSH protocol: https://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:SSH\_and\_FTP\_setup#SSH\_Configuration\_to\_Get\_Data\_in\_Pandora\_FMS If this documentation does not help you, please contact us again and will try to solve the problem. Best regards, Alberto

Entra en tu cuenta para publicar.