跳转到主内容

SSH错误未找到匹配的主机密钥

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2009779442</a>
Last Updated:

适用场景

  • ONTAP 9
  • 已启用 FIPS

问题描述

  • SSH失败、并显示错误:未找到匹配的主机密钥类型
  • 尝试执行ssh时会出现以下错误
0000001f.0013d43b 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:error] 1 2023-12-05T12:19:38.097331-05:00 node_01 sshd 64219 --error:         WARNING: UNPROTECTED PRIVATE KEY FILE!
0000001f.0013d43d 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:error] 1 2023-12-05T12:19:38.097371-05:00 node_01 sshd 64219 --error: Permissions 0644 for '/etc/ssh/ssh_host_ecdsa_key' are too open.
0000001f.0013d43e 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:error] 1 2023-12-05T12:19:38.097381-05:00 node_01 sshd 64219 --error: It is required that your private key files are NOT accessible by others.
0000001f.0013d43f 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:error] 1 2023-12-05T12:19:38.097391-05:00 node_01 sshd 64219 --error: This private key will be ignored.
0000001f.0013d440 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:error] 1 2023-12-05T12:19:38.097767-05:00 node_01 sshd 64219 --error: Public key for /etc/ssh/ssh_host_ed25519_key does not match private key
0000001f.0013d441 0a0aa02a Tue Dec 05 2023 12:19:38 -05:00[auth:info] 1 2023-12-05T12:19:38.118093-05:00 node_01 sshd 64219 --Unable to negotiate with xxx.xxx.xx.xx port 51401: no matching host key type found.
Their offer:ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,etc. etc.

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.