Skip to main content

Cornelis Technical Documentation

Name

sshKey — Manages the public SSH keys for passwordless switch login.

Syntax

sshKey [add | rm [host <HOST>] | list] [<KEY> [COMMENT] | all]

Options

add

Adds an SSH key.

rm

Removes a specified SSH key or all keys.

host

Specifies the host to remove from the SSH known hosts.

<HOST>

Specifies the IP address of the host.

list

Displays the SSH keys associated with the current user.

<KEY>

Specifies an SSH key.

COMMENT

Specifies an optional comment (for example, user@example.com).

all

Specifies all keys.

Examples

sshKey add 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtD1PcXmB7A... user@example.com'
sshKey rm 'user@example.com'
sshKey rm all
sshKey rm hosts 100.200.300.400
sshKey list