Addressing SSH Failures in SDDC Manager with 'reject HostKey' Error | VMware Cloud Foundation
A common error that VCF admins may encounter is the reject HostKey
error. This indicates a mismatch or incorrect SSH Host Key entry stored in the SDDC Manager's known_host file(s). In this post, we'll walkthrough the process of addressing and resolving this issue.
Caused by: com.jcraft.jsch.JSchException: reject HostKey: 127.0.0.1
at com.jcraft.jsch.Session.checkHost(Session.java:799)
at com.jcraft.jsch.Session.connect(Session.java:345)
at com.jcraft.jsch.Session.connect(Session.java:183)
SDDC Manager uses the jsch
library, which is a pure Java implementation of SSH2. jsch
allows you to connect to a sshd
server and use port forwarding, file transfer, scp
, sftp
etc
The reject HostKey
error indicates a discrepancy between the expected Host Key and the one presented during an SSH connection attempt. This can occur due to various reasons, such as system restores, upgrades, manual key changes, manual re-installs etc, leading to authentication failures. These authentication failures can affect operations and workflows throughout the VCF environment.