set ssh server authkey

Use this command to explicitly map a public key to a specific user.

Syntax

set ssh server authkey username {ssh-dss | ssh-rsa} ssh-key [no-confirm]

Parameters

username Specifies the user to whom the public key belongs.
ssh-dss Specifies DSA as the public key type.
ssh-rsa Specifies RSA as the public key type.
ssh-key Specifies the public key in OpenSSH format.
no-confirm (Optional) Specifies that the key is accepted without prompting for confirmation.

Defaults

None.

Mode

All command modes.

Usage

This command assigns a single public key to a single user. The key must be of type DSA or RSA, and the key data must be in OpenSSH format (created by the OpenSSH command ssh-keygen).

Example

This example shows how to assign a created RSA public key to the user testuser:

System(rw)->set ssh server authkey testuser ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDZoYlKuBueHbGWuqF4PcyiiVZQTJBEAaJUl2N8WfRYyGAFah7vSmIoOIhEz1QSn47agV6z4LN8VCJcwfiiW2y7df/vppc0KVqx/zm1cD5luapTsmZ2ljAppNyNcEsw4LU=
Entered key for username "testuser" has the following attributes:
  Key Type: ssh-rsa
  Strength: 768 bits
Do you accept this public key (y/n) [n]?y
System(rw)->