beautypg.com

Crypto key generate userkey – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1389

background image

Secure Shell (SSH) Commands

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

54.7

crypto key generate userkey

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:

To generate a DSA user key for the user lapo, use the commands:

Related Commands

crypto key destroy 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.

awplus#

configure terminal

awplus(config)#

crypto key generate userkey bob rsa 2048

awplus#

configure terminal

awplus(config)#

crypto key generate userkey lapo dsa