メインコンテンツへスキップ

ホストからのSSH公開鍵ログインで「警告」が毎回表示される:「ONTAPcluster」のECDSAホストキーはIPアドレス「cluster-mgmt」のキーと異なります

Views:
41
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

環境

  • ONTAP 9
  •   公開鍵を使用したONTAPへのSSHアクセス

問題

  1. cluster-mがGMTを別のノードに移行すると、クライアントからのSSH公開鍵ログインでは  毎回ログインプロンプトが表示されます。
    Username@hostname:/im$ ssh ONTAPcluster
    Warning: the ECDSA host key for 'ONTAPcluster' differs from the key for the IP address 'cluster-mgmt'
    Offending key for IP in /home/Username/.ssh/known_hosts:2
    Matching host key in /home/Username/.ssh/known_hosts:14
    Are you sure you want to continue connecting (yes/no)? yes
  2.  クライアントの  known_hosts ファイルからONTAPクラスタのエントリを削除します。引き続き表示されます。  
    Username@hostname:~/.ssh$ ssh-keygen -R ONTAPcluster
    # Host ONTAPcluster found: line 8
    /home/Username/.ssh/known_hosts updated.
    Original contents retained as /home/Username/.ssh/known_hosts.old
      
    Username@hostname:/im$ ssh ONTAPcluster
    The authenticity of host 'ONTAPcluster (cluster-mgmt)' can't be established.
    ECDSA key fingerprint is SHA256:HTD2anAXhctocDmZtr7/aP5QraLVfi6s1bYczavC538.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added 'ONTAPcluster' (ECDSA) to the list of known hosts.
    Warning: the ECDSA host key for 'ONTAPcluster' differs from the key for the IP address 'cluster-mgmt'
    Offending key for IP in /home/Username/.ssh/known_hosts:2
    Are you sure you want to continue connecting (yes/no)? yes

 

 

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.