Ad Widget

Collapse

ssh check fails with public key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dogbert831
    Junior Member
    • Mar 2014
    • 13

    #1

    ssh check fails with public key

    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?
  • WolfFlight
    Junior Member
    • May 2012
    • 18

    #2
    this problem occurring for me as well

    has anyone found a working solution or found out why this might currently be non-functional

    Comment

    • WolfFlight
      Junior Member
      • May 2012
      • 18

      #3
      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 others

      Comment

      • dogbert831
        Junior Member
        • Mar 2014
        • 13

        #4
        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

        Working...