Configure SSH Keys for Log Uploads
Configure SSH Keys for Log Uploads
You can configure your SSH key pairs to automatically upload logs to the appliance.
To use your own SSH key pairs:
- Access the appliance console using ssh.
- Log in using the
nsadmin/nsappliance
credentials. An nsshell opens. - Enter
configure
to enter the nsshell configure mode. - Add an entry to the ssh-public-keys list in the CLI configuration:
add log-upload ssh-public-keys added index 0
- Set the value of the ssh public key at the index returned from the last command. This requires you to paste the SSH public key:
set log-upload ssh-public-keys 0 key Copy and paste the ssh public key Enter one or more lines of input. When done, press Ctrl-D ssh-rsa ABAQCYr/tT64RNidYhuGisLLQLdd2e1jDtxYepCcE0Z98iyzX57985Xi eVWDn8PJbniexq4PRvMy8RRYZ2ktu7aqacCjIpqlgbG0Xxgk5mXApXCpglqIE/A/ lRtZqfp6+/mbn7RuBbUXFkEbYz3uPwUFgZOUEI2KUx9za8SYnUc64kCujmYZ7UF5 JXmvZg4AhIPVHzvT+XbLDHOsC8mNrgEQeslpB9jGbCYZSLQKHwx3Pknv+rQaJ04G +WRM/NmokhZXhM7GKXrufQjKRbZeXcHBGksNMSzTL+YihAQDqq4qC0drnGdu3Ezz SEfwuz+PJ+ugh test@ubuntu-docker== ^D
- To see the configuration, enter the following command:
show log-upload ssh-public-keys [ { "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYr/tT64RNidYh sLLQLdd2e1jDtxYepCcE0Z98iyzX57985XineoeVWDn8PJbniexq4PRvMy8RRYZ2 7aqacCjIpqlgbG0Xxgk5mXApXCpglqIE/A/ZD1lRtZqfp6+/mbn7RuBbUXFkEbYz wUFgZOUEI2KUx9za8SYnUc64kCujmYZ7UF55a8JXmvZg4AhIPVHzvT+XbLDHOsC8 gEQeslpB9jGbCYZSLQKHwx3Pknv+rQaJ04GqiL+WRM/NmokhZXhM7GKXrufQjKRb cHBGksNMSzTL+YihAQDqq4qC0drnGdu3EzzVRrSEfw test@ubuntu-docker== " } ]
- Enter
save
to activate your changes. - Enter
exit
to leave the configure mode. - Enter
exit
to leave the nsshell and exit the appliance console.