Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18121

SSH monitoring with sshkey and sshpassphrase on libssh fails

XMLWordPrintable

    • Team A
    • Sprint 66 (Jul 2020), Sprint 67 (Aug 2020), Sprint 68 (Sep 2020)
    • 0.5

      SSH monitoring, especially ssh.run, fails on Zabbix server or proxy which is built with libssh, and with keyfile and passphrase.

      Some months ago, you change the default library from libssh2 to libssh. But ssh poller code has the bug for libssh for pubkey. It does not use passphrase. So, if keyfile require passphrase, ssh.run monitoring fails.

      zabbix_server.log
      Enter PEM pass phrase:
      24894:20200721:200531.112 error reason for "Zabbix server:ssh.run["ssh passphrase test",192.168.122.80,,]" chan
      ged: Failed to import private key: /etc/zabbix/ssh_key/id_rsa
      Enter PEM pass phrase:

      So, I fixed this bug and attached the patch.

            viktors.tjarve Viktors Tjarve
            daiki.matsuda@miraclelinux.com MATSUDA Daiki
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: