9.3.2.12. set ssh-keys

A - Introduction

The `ssh-keys` command of the `set` sub-group enables adding or changing the SSH keys.
Depending on the account, it is possible to change only the current level and the lower level.
The addition or modification can be carried out either on the command line or via the Nano text editor.
Changing SSH keys overwrites the old keys. You must specify the old keys followed by the new ones in the command.

User

can change the password

setup

gviewadm

gview

setup

X

X

X

gviewadm

X

X

gview

X

The GCap enables up to 50 different users with different key sizes:

  • RSA 2048 ou 4096

  • ssh-ed25519

  • ecdsa-sha2-nistp256


B - Prerequisites

  • User: setup, gviewadm, gview

  • Dependencies: N/A


C - Command

`set ssh-keys {setup|gviewadm|gview} "ssh-rsa ...\nssh-rsa`


D - Procedure to use the text editor

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    set ssh-keys gview
    
  2. Validate
    The text editor displays the SSH password file

    image0

    Each line in the file is an SSH key starting with ssh-rsa.
  3. To delete a key, delete the line
    To change a key, edit a line
    To add a key, add a line starting with sshrsa
  4. To exit, press <CTRL> + <X>

  5. Save the changes if necessary


E - Procedure to add an SSH key to the setup user from a connection with the setup user

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    set ssh-keys setup "ssh-rsa ..."
    
  2. Validate