The NSX Advanced Load Balancer enables the admin user to log in using SSH keys, instead of having to supply a password. This section details ways for password-less SSH-based login for admin user.
Password-less Login using NSX Advanced Load Balancer CLI
To upload a key, use the following command.
upload adminkey public_key "<public key>
To delete a specific key, use the following command.
delete adminkey public_key "<public key>"
To delete all the keys, use the following command.
delete adminkey
Password-less Login using NSX Advanced Load Balancer Rest API
To upload a key, usee the following API request.
POST https://<controller-ip>/api/adminkey JSON data: {"key":"<public key>"}
To delete a specific key, use the following API request.
DELETE https://<controller-ip>/api/adminkey?key=<public key>
To delete all the keys, use the following API call.
DELETE https://<controller-ip>/api/adminkey?key