If you decide you want to use authorized keys to log in to a host with SSH, you can upload authorized keys with a vifs command.
- Authorized keys file for root user
- RSA key
- RSA public key
Starting with the vSphere 6.0 Update 2 release, DSS/DSA keys are no longer supported.
- ♦ At the command line or an administration server, use the vifs command to upload the SSH key to appropriate location on the ESXi host.
vifs --server hostname --username username --put filename /host/ssh_host_dsa_key_pub
Type of key Location Authorized key files for the root user /host/ssh_root_authorized keys
You must have full administrator privileges to upload this file.
RSA keys /host/ssh_host_rsa_key RSA public keys /host/ssh_host_rsa_key_pub