C613-50057-01 REV A
Command Reference for AT-IX5-28GPX High Availability, High Power Video Surveillance PoE Switch
1245
AlliedWare Plus™ Operating System - Version 5.4.5-0.x
S
ECURE
S
HELL
(SSH) C
OMMANDS
CRYPTO
KEY
GENERATE
USERKEY
crypto key generate userkey
Overview
This command generates public and private keys for an SSH user using either an
RSA or DSA cryptography algorithm. To use public key authentication, copy the
public key of the user onto the remote SSH server.
This command is not saved in the device configuration. However, the device saves
the keys generated by this command in the non-volatile memory.
Syntax
crypto key generate userkey <
username
> {dsa|rsa|rsa1}
[<
768-32768
>]
Mode
Global Configuration
Examples
To generate a 2048-bits RSA user key for SSH version 2 connections for the user
bob
, use the commands:
awplus#
configure terminal
awplus(config)#
crypto key generate userkey bob rsa 2048
To generate a DSA user key for the user
lapo
, use the commands:
awplus#
configure terminal
awplus(config)#
crypto key generate userkey lapo dsa
Related
Commands
crypto key pubkey-chain userkey
show crypto key userkey
Parameters
Description
<
username
>
Name of the user that the user key is generated for. The username
must begin with a letter. Valid characters are all numbers, letters, and
the underscore, hyphen and full stop symbols.
dsa
Creates a DSA userkey. Both SSH version 1 and 2 connections can use
a key created with this command.
rsa
Creates an RSA userkey for SSH version 2 connections.
rsa1
Creates an RSA userkey for SSH version 1 connections.
<
768-32768
>
The length in bits of the generated key. The DSA algorithm supports
only 1024 bits.
Default: 1024.