Views:
  1. Generate a key pair in a Linux/macOS machine using the following command:

    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

    As an example:

    test@Test:~/.ssh$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/test/.ssh/id_rsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/test/.ssh/id_rsa
    Your public key has been saved in /home/test/.ssh/id_rsa.pub
    The key fingerprint is:
    SHA256:bKjBUsUGea7BeoZ3deK9ZLOvQTR250pxyydJxfBQFco your_email@example.com
    The key's randomart image is:
    +---[RSA 4096]----+
    | .+. o=*|
    | ..+ . .+.|
    | ..+ + oE+ .|
    | oo .ooo.o B o |
    | .ooo.oS+. . * .|
    | o.=o....=. . o |
    | +.. o.+. |
    | o. |
    | .o. |
    +----[SHA256]-----+
    test@Test:~/.ssh$ ls -al /home/test/.ssh
    total 16
    drwx------ 2 test test 4096 Mar 14 07:48 .
    drwxr-xr-x 6 test test 4096 Feb 27 09:06 ..
    -rw------- 1 test test 3389 Mar 14 07:48 id_rsa
    -rw-r--r-- 1 test test  748 Mar 14 07:48 id_rsa.pub
  2. View generated id_rsa.pub file and get the long key in the middle. As an example:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLHcZJ4PWKs0hvZYYLkXUwbeV5LdKmlR7eZFpRDa/9AeNb36vGodL3Ezo+3wGQ6tlDCM2UoonfU+Fkk8MhrCTqbJc2DDkhjXUOD+5HrRdDbfQtMTv6V3lMMk7U2w== your_email@example.com

  3. Go to the Service Gateway terminal via admin account.
  4. Input "enable" command to go to privileged mode.
  5. Add public key generated into Service Gateway:

    configure verify cli support "put_long_key_in_the_middle_here"

    As an example:

    configure verify cli support AAAAB3NzaC1yc2EAAAADAQABAAACAQDLHcZJ4PWKs0hvZYYLkXUwbeV5LdKmlR7eZFpRDa/9AeNb36vGodL3Ezo+3wGQ6tlDCM2UoonfU+Fkk8MhrCTqbJc2DDkhjXUOD+5HrRdDbfQtMTv6V3lMMk7U2w==

  6. From the original Linux/macOS machine, SSH to the Service Gateway using the following command:

    ssh sgowner@ip_of_service_gateway -i /Users/username/.ssh/id_rsa

  7. After logging in to the Service Gateway backend with Service Gateway owner, switch user to root using the command:

    sudo su -