C613-50170-01 Rev B
Command Reference for x510 Series
2697
AlliedWare Plus™ Operating System - Version 5.4.7-1.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} [<
768-1024
>]
crypto key generate userkey <
username
> {rsa|rsa1} [<
768-32768
>]
crypto key generate userkey <
username
> {ecdsa} [<
256|384
>]
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
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.
ecdsa
Creates an ECDSA hostkey. Both SSH version 1 and 2 connections can
use the ECDSA hostkey.
<
768-32768
>
The length in bits of the generated key. The default is 1024 bits.
<
256|384
>
The ECDSA key size in bits. The default is 256, but it can be set to 384.