Using SSH keys to connect to ESXi

In VMware ESXi 5, SSH is enabled through the “Configuration / Security Profile / Services” section. When you connect using the root user, you have to specify the root password. If you want to use SSH keys, the only thing you have to do is copy them, over ssh, to a dedicated directory:

# cd ~/.ssh # scp id_rsa.pub authorized_keys root@esxi:/etc/ssh/keys-root/

You can now connect to the ESXi using your SSH keys (and the `ssh-agent`). So simple!

Source: SSH Keys & Lockdown Mode Caveat in ESXi 5

Author: Joel Carnat

#work Technical Architect and SysAdmin #geek OpenBSD and Open Source + Free Software #fun Karate, Kobudo, Jodo, Bodyweight workout, Photography

Leave a Reply

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.