Error: SSH authentication failed.
search cancel

Error: SSH authentication failed.

book

Article ID: 331038

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Pull config fails when device SSH Key changed. Receive the following VoyenceControl error message during pull operation:

ssh_connect(): <Device_IP> - SSH keys did not match


Environment

NCM - 10.1.x

Cause

  • Somehow the SSH keys of device and NCM server have gone out of sync.
  • A stale SSH key remains in the NCM server cache for the device.
  • Hardware was added, removed or replaced on the device.

Resolution

  • Login to NCM Device Server (DS) with 'root' access.
  • Navigate to /root/.ssh directory.
  • In this directory there is a file called known_hosts which contains the key data for each host/IP.
  • To remove the key for the IP in the error, run the following command :
      ssh-keygen -R <ip address>
    Example: ssh-keygen -R #.#.#.#