6.5.1

Table Of Contents
Procedure
u
At the command line or an administration server, use the vifs command to upload the SSH key to an
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
Upload an SSH Key Using HTTPS PUT
You can use authorized keys to log in to a host with SSH. You can upload authorized keys with HTTPS
PUT.
Authorized keys allow you to authenticate remote access to a host. When users or scripts try to access a
host with SSH, the key provides authentication without a password. With authorized keys you can
automate authentication, which is useful when you write scripts to perform routine tasks.
You can upload the following types of SSH keys to a host using HTTPS PUT:
n
Authorized keys file for root user
n
DSA key
n
DSA public key
n
RSA key
n
RSA public key
Important Do not modify the /etc/ssh/sshd_config file.
Procedure
1 In your upload application, open the key file.
2 Publish the file to the following locations.
Type of key Location
Authorized key files for the root user
https://hostname_or_IP_address/host/ssh_root_authorized_keys
You must have full administrator privileges on the host to upload this file.
DSA keys
https://hostname_or_IP_address/host/ssh_host_dsa_key
DSA public keys
https://hostname_or_IP_address/host/ssh_host_dsa_key_pub
RSA keys
https://hostname_or_IP_address/host/ssh_host_rsa_key
RSA public keys
https://hostname_or_IP_address/host/ssh_host_rsa_key_pub
vSphere Security
VMware, Inc. 49