My ssh checks work fine when using a password but fail with public key. The log shows "Cannot access public key file /home/user/.ssh/id_rsa.pub". I am able to ssh from the zabbix terminal to the server in question just fine. The path listed is the same as that in zabbix_server.conf. Any ideas what I'm doing wrong?
Ad Widget
Collapse
ssh check fails with public key
Collapse
X
-
Tags: None
-
this problem occurring for me as well
has anyone found a working solution or found out why this might currently be non-functional -
just fixed this on my end
the key actually needs to be read by the zabbix server user
drwx------ 2 zabbixsrv zabbix 4.0K May 7 11:35 .ssh
so changing ownership of the .ssh directory to zabbixsrv solved the issue here for me/us
hope that helps you and othersComment
-
My problem was that my shell user on the Zabbix server was different than the zabbix user. So the key was in my normal user's home/.ssh folder. Once I moved it to /home/zabbix/.ssh everything worked fine. Sorry for not posting my solution.Comment
Comment