[ZBX-3811] SSH with publickey errors as unsupported Created: 2011 May 16  Updated: 2017 May 30  Resolved: 2011 Oct 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.4
Fix Version/s: 2.0.0

Type: Incident report Priority: Trivial
Reporter: Vladimir Berezhnoy Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: ssh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 6.0.1, Version: 1:1.8.4-3+b1


Attachments: PNG File zabbix.png    

 Description   

15829:20110516:102330.142 ssh_run() Supported authentication methods:'publickey,password,keyboard-interactive'
15829:20110516:102330.151 End of ssh_run():NOTSUPPORTED
15829:20110516:102330.152 Item [wdtv:ssh.run[df_1,192.168.2.6]] error: Authentication by public key failed
15826:20110516:102331.556 ssh_run() Supported authentication methods:'publickey,password,keyboard-interactive'
15826:20110516:102331.566 End of ssh_run():NOTSUPPORTED
15826:20110516:102331.566 Item [s:ssh.run[df_1,192.168.2.6]] error: Authentication by public key failed

Password authentification works without issues.



 Comments   
Comment by Alexei Vladishev [ 2011 May 16 ]

Make sure you have both public and private key correct and accessible by Zabbix.

Comment by Vladimir Berezhnoy [ 2011 May 16 ]

I believe it is. At least there are no "access denied" errors.

zabbix:~# ls -l /etc/zabbix/key.rsa*
rw------ 1 zabbix zabbix 1766 May 16 09:22 /etc/zabbix/key.rsa
rw-rr- 1 zabbix zabbix 393 May 16 09:22 /etc/zabbix/key.rsa.pub
zabbix:~# grep SSH /etc/zabbix/zabbix_server.conf
SSHKeyLocation=/etc/zabbix

I'm able to login to server sucessfully using following command:
zabbix:~# su - zabbix -s /bin/sh -c "ssh [email protected] -i /etc/zabbix/key.rsa"
Enter passphrase for key '/etc/zabbix/key.rsa':
non7top@wdtv ~ $

Comment by Aleksandrs Saveljevs [ 2011 May 17 ]

Zabbix 1.8.4 works with public key authentication with and without passphrase on my setup.

Comment by richlv [ 2011 Sep 05 ]

both dsa and rsa keys work for me with and without passphrase.

does "Password authentification works without issues." refer to it working from within zabbix ?

which libssh2 version is zabbix server compiled with ?

Comment by richlv [ 2011 Oct 29 ]

please reopen if new information is available

Generated at Mon May 26 08:07:49 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.