Download Print this page

Crypto Key Generate Hostkey - Centrecom FS980M/9 Command Reference Manual

Fs980m series fast ethernet managed access switches reference for alliedware plus version 5.4.6-2.x

Advertisement

S
S
(SSH) C
ECURE
HELL
OMMANDS

CRYPTO KEY GENERATE HOSTKEY

crypto key generate hostkey
Overview
This command generates public and private keys for the SSH server using either an
RSA or DSA cryptography algorithm. You must define a host key before enabling
the SSH server. Start SSH server using the service ssh command. If a host key exists
with the same cryptography algorithm, this command replaces the old host key
with the new key.
This command is not saved in the device configuration. However, the device saves
the keys generated by this command in the non-volatile memory.
crypto key generate hostkey {dsa|rsa|rsa1} [<768-32768>]
Syntax
Default
1024 bits is the default key length. The DSA algorithm supports 1024 bits.
Mode
Global Configuration
Examples
To generate an RSA host key for SSH version 2 connections that is 2048 bits in
length, use the commands:
awplus#
awplus(config)#
To generate a DSA host key, use the commands:
awplus#
awplus(config)#
Related
crypto key destroy hostkey
Commands
service ssh
show crypto key hostkey
613-50137-01 Rev A
Parameters
Description
dsa
Creates a DSA hostkey. Both SSH version 1 and 2 connections can
use the DSA hostkey.
rsa
Creates an RSA hostkey for SSH version 2 connections.
rsa1
Creates an RSA hostkey for SSH version 1 connections.
<768-32768>
The length in bits of the generated key. The default is 1024 bits.
configure terminal
crypto key generate hostkey rsa 2048
configure terminal
crypto key generate dsa
Command Reference for FS980M Series
AlliedWare Plus™ Operating System - Version 5.4.6-2.x
1601

Advertisement

loading