C613-50170-01 Rev B
Command Reference for x510 Series
2693
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
ECURE
S
HELL
(SSH) C
OMMANDS
CRYPTO
KEY
DESTROY
HOSTKEY
crypto key destroy hostkey
Overview
This command deletes the existing public and private keys of the SSH server.
When you enable the SSH server, the server automatically generates an SSHv2 host
key pair (public and private keys), using RSA with 1024-bit key generation. If you
need a key with different parameters than this, you can use the
command to generate that key before you enable the SSH
server.
Syntax
crypto key destroy hostkey {dsa|ecdsa|rsa|rsa1}
Mode
Global Configuration
Example
To destroy the RSA host key used for SSH version 2 connections, use the
commands:
awplus#
configure terminal
awplus(config)#
crypto key destroy hostkey rsa
Related
Commands
Parameters
Description
dsa
Deletes the existing DSA public and private keys.
ecdsa
Deletes the existing ECDSA public and private keys.
rsa
Deletes the existing RSA public and private keys configured for SSH
version 2 connections.
rsa1
Deletes the existing RSA public and private keys configured for SSH
version 1 connections.