Must be missing something ...
Complete:
Complete:
- Created keys using PuTTYgen
- Public Key - Edited FreeNAS root user (copied "Public key for pasting into OpenSSH authorized_keys file" to "SSH Public Key" field)
- Public Key - Edited on ESXi HOST: /etc/ssh/keys-root/authorized_keys added same "Public key for pasting ..."
- Configured PuTTY saved session to use private key to SSH to FreeNAS VM = WORKS
- Configured PuTTY saved session to use private key to SSH to ESXi Host = WORKS
- via SSH Console to FreeNAS = NOPE (see below)
- Do I need to copy the private key to the FreeNAS VM so it uses that to authenticate SSH to ESXi Host?
- I changed * something * on the ESXI Host sshd_config and
ssh root@ESXiHost
worked, but it prompted me for a password too. Not what we want. Should have made a copy of sshd_config as I've changed it so many times, I'm not sure what I changed.
root@FreeNAS:~ # ssh root@ESXiHost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
BLAHBLAH
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:1
RSA host key for ESXiHost.localdomain has changed and you have requested strict checking.
Host key verification failed.