[ZBX-9817] ssh key auth fails with "Callback returned error" Created: 2015 Aug 25 Updated: 2017 Nov 17 Resolved: 2017 Nov 17 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 2.5.0 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Critical |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | ssh | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
trunk r55129 |
Description |
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) |
Comments |
Comment by richlv [ 2015 Aug 26 ] |
for the record, it seems to work ok with libssh2 1.2.9 |
Comment by Oleksii Zagorskyi [ 2015 Sep 04 ] |
What is the distro ?
|
Comment by Ingus Vilnis [ 2017 Nov 17 ] |
According to the comments does not look like a Zabbix defect but more like a libssh issue. Closing this as Cannot reproduce but please reopen if it is still relevant. |