Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8091

Cannot establish SSH session: kex error rsa sha1

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Fixed
    • Icon: Major Major
    • 6.4.0rc1, 6.4 (plan)
    • 6.2.3
    • Proxy (P), Server (S)
    • None
    • Ubuntu 22.04
    • Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
    • 2

      Steps to reproduce:

      1. In Zabbix create SSH check to old device like Cisco with RSA SHA1 only KEX.
      2. When you try to get data you have error: 
      3. Cannot establish SSH session: kex error : no match for method server host key algo: server [ssh-rsa], client [ssh-dss]

      Result:

      • Cannot establish SSH session: kex error : no match for method server host key algo: server [ssh-rsa], client [ssh-dss] 
      • Looks like libssh in Zabbix ignores ~/.ssh/config and glogal ssh_config files.

      Expected:
      Getting data via ssh due to add to config file rsa:

       

      cat /home/zabbix/.ssh/config
      Host *
      KexAlgorithms diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
      HostKeyAlgorithms +ssh-rsa,ssh-dss
      PubkeyAcceptedKeyTypes +ssh-rsa
      

            askolmeisters Armands Arseniuss Skolmeisters
            Hawk128 Yury Larin
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: