Ad Widget

Collapse

Cannot establish SSH session: Socket error: No such file or directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dtk33d
    Junior Member
    • Aug 2020
    • 6

    #1

    Cannot establish SSH session: Socket error: No such file or directory

    Hello,
    i have zabbix on debian 12, trying to make a simple ssh check.
    I followed the ssh setup in the documentation, everything ok.

    But in Zabbix Gui i get the error:
    • Cannot establish SSH session: Socket error: No such file or directory
  • Jan_Prusinowski
    Junior Member
    • Dec 2024
    • 6

    #2
    Could you provide more info about your setup?
    As I understand you have installed Zabbix Agent on machine with Debian12 and you want to make an SSH check from a different machine with Zabbix Server?
    If so check if the SSH server is installed and running on your Debian platform.

    To check if the SSH Server is installed on Debian12 on the said machine run:
    Code:
    dpkg -l | grep openssh-server
    If it is installed check if it is running by:
    Code:
    sudo systemctl status ssh

    Comment


    • manoo
      manoo commented
      Editing a comment
      Same problem here. Zabbix documentation (https://www.zabbix.com/documentation...pes/ssh_checks) says "SSH checks are performed as agent-less monitoring. Zabbix agent is not needed for SSH checks.". So made the ssh check asit was written there but when testing got the error message "Cannot establish SSH session: Socket error: No such file or directory". No clue why. Logging into the host from zabbix server is successfull. The command is simple (/bin/ls).
  • manoo
    Junior Member
    • Feb 2025
    • 1

    #3
    There is some communication between the host's 22/tcp and the zabbix server during the test of the ssh agent (there are two-ways entries in tcpdump) but have "dropbear[1367]: Exit before auth: Exited normally" in the host's log. It seems there is no authentication. I found no other logs on the zabbix server.

    Comment

    Working...