Skip to main content
NetApp Knowledge Base

SSH fails after upgrade from ONTAP 9.7 to 9.8 error: Unsupported KEX algorithm

Last Updated:

Applies to

  • ONTAP after upgrade to 9.8 and later
  • Secure Shell (SSH) management
  • Key Exchange (KEX) Algorithm


  • Unable to login to the cluster via SSH - client shows:
ssh_exchange_identification: Connection closed by remote host.
  • Messages.log shows:

Mon Nov 09 2020 17:24:19 +01:00 [auth:error] 1 2020-11-09T17:24:19.300385+01:00 node-01 sshd 20346 - - error: Unsupported KEX algorithm "diffie-hellman-group14-sha1"

Mon Nov 09 2020 17:24:21 +01:00 [auth:CRITICAL] 1 2020-11-09T17:24:21.042063+01:00 node-01 sshd 20426 - - fatal: /etc/ssh/sshd_config line 101: Bad SSH2 KexAlgorithms 'diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521'.

  • System Manager (HTTPS access) is not affected and works as expected

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.