Skip to main content

Netskope Help

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:

  1. Access the appliance console using ssh.

  2. Log in using the nsadmin/nsappliance credentials. An nsshell opens.

  3. Enter configure to enter the nsshell configure mode.

  4. Add an entry to the ssh-public-keys list in the CLI configuration:

    add log-upload ssh-public-keys
    added index 0
  5. 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
  6. 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==
    "
      }
    ]
  7. Enter save to activate your changes.

  8. Enter exit to leave the configure mode.

  9. Enter exit to leave the nsshell and exit the appliance console.