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

ssh key auth fails with "Callback returned error"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • 2.5.0
    • Proxy (P), Server (S)
    • trunk r55129
      libssh2 1.5.0

      attempting to use ssh items with key authentication fails with :

      "Public key authentication failed: Callback returned error"

      sshd debug log seems to indicate that zabbix did the disconnect :

      testhost sshd[7540]: debug1: matching key found: file /home/zabbixtest/.ssh/authorized_keys, line 1
      testhost sshd[7540]: Found matching RSA key: 80:22:56:01:b2:f2:20:f1:1a:5d:fe:de:78:d9:9f:f0
      testhost sshd[7540]: debug1: restore_uid: 0/0
      testhost sshd[7540]: Postponed publickey for zabbixtest from 127.0.0.1 port 39222 ssh2 [preauth]
      testhost sshd[7540]: Received disconnect from 127.0.0.1: 11: Normal Shutdown [preauth]
      

      zabbix debug log does not seem to show much :

        4638:20150825:144027.470 In get_value() key:'ssh.run[system.test.keys]'
        4638:20150825:144027.470 In ssh_run()
        4638:20150825:144027.545 ssh_run() supported authentication methods:'publickey,keyboard-interactive'
        4638:20150825:144027.546 End of ssh_run():NOTSUPPORTED
        4638:20150825:144027.546 Item [A test host:ssh.run[system.test.keys]] error: Public key authentication failed: Callback returned error
        4638:20150825:144027.546 End of get_value():NOTSUPPORTED
      
      # ldd /usr/lib64/libssh2.so.1
              linux-vdso.so.1 (0x00007ffd86b80000)
              libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fe952b87000)
              libz.so.1 => /lib64/libz.so.1 (0x00007fe952971000)
              libc.so.6 => /lib64/libc.so.6 (0x00007fe9525c2000)
              libdl.so.2 => /lib64/libdl.so.2 (0x00007fe9523be000)
              /lib64/ld-linux-x86-64.so.2 (0x00007fe9531a8000)
      

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: