If you want to enable OpenSSH Public Key Authentication on your ESXi 5 host, append contents of your public key to
/etc/ssh/keys-USERNAME/authorized_keysfile instead of usual
For example, to enable public key logins as
rootuser, do the following:
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> /etc/ssh/keys-root/authorized_keys'
Obviously, SSH server needs to be enabled on the ESXi host before you can do that. As I mentioned in my ESXi 5 installation write up, starting with