ESXi SSH access with public key

/etc/ssh/keys-root/authorized_keys

is the authorized_keys location for the root user on ESXi 7.

Then, add your ESXi host to the ~/.ssh/config

host esxihost
    #PreferredAuthentications keyboard-interactive,password
    PubkeyAuthentication yes
    ForwardX11 no
    User root

Leave a Reply

Your email address will not be published. Required fields are marked *