NSX CLI Guide
set user <username> ssh-keys label <key-label> type <key-type> value <key-value> [password <password>]
Add SSH service key to authorized_keys file for specified user. If password is not provided in the command then you are prompted to enter it. Password is required only for users root and admin.
Parameters:
Option | Description |
---|---|
<username> | Username of user |
<key-label> | Unique label for SSH key |
<key-type> | SSH key type Allowed values: ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-dss, ssh-ed25519, ssh-rsa |
<key-value> | SSH key value |
<password> | Password of user |