Ad Widget

Collapse

SSH remote command with Public Key not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frostymy
    Junior Member
    • Nov 2012
    • 3

    #1

    SSH remote command with Public Key not working

    Hi all,

    I'm currently having problem with Public key authentication for running SSH remote commands. SSH remote command with password works, but when it comes to using key authentication, no action is performed.

    Here is my scenario/findings :
    1) My test remote command is echo "Server Problem" > ~/report.log

    2) There is no error whatsoever in zabbix server log.

    3) SSHKeyLocation is pointing at the correct path. Anyway I tried specifying full path for the key fields under "operations" tab.

    4) Tried both Public key with keyphrase and without. Both did not work.

    5) I do see Zabbix server connecting to the client using SSH ( tcpdump at the client ) at time of trigger, but no action was performed.

    6) Using the user "zabbix", which is runninig zabbix server, I can SSH using the bash shell into the client using public key without password.


    I'm currently running out of ideas as to what is causing public key authentication to make the remote commands fail. Any suggestions would be appreciated.

    Thanks.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    maybe https://support.zabbix.com/browse/ZBX-5674
    Zabbix 3.0 Network Monitoring book

    Comment

    • frostymy
      Junior Member
      • Nov 2012
      • 3

      #3
      Thanks for the reply, richlv.

      Yup, I found that bug report too, but the thing that is bothering me is that the version I'm using is the current stable version "2.0.3", whereas the bug report states that affected versions were dev versions "2.0.4" and "2.1.0".

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        that's probably just the version it was discovered in (pre-2.0.4)
        Zabbix 3.0 Network Monitoring book

        Comment

        • frostymy
          Junior Member
          • Nov 2012
          • 3

          #5
          Haha, at least that puts my mind to ease.
          Thanks for the replies.

          Comment

          • markl
            Member
            Zabbix Certified Specialist
            • Apr 2008
            • 62

            #6
            Anyone know when 2.0.4 is expected for release?

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              2.0.4rc1 was planned yesterday, but a blocking issue was found that has to be fixed before rc1 can come out

              Zabbix 3.0 Network Monitoring book

              Comment

              Working...