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

Cannot establish SSH session: kex error rsa sha1

    XMLWordPrintable

Details

    • Team C
    • Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 2

    Description

      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
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: