C613-50170-01 Rev B
Command Reference for x510 Series
2707
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
ECURE
S
HELL
(SSH) C
OMMANDS
SHOW
CRYPTO
KEY
HOSTKEY
show crypto key hostkey
Overview
This command displays the public keys generated on the device for 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.
The private key remains on the device secretly. The public key is copied to SSH
clients to identify the server. This command displays the public key.
Syntax
show crypto key hostkey [dsa|ecdsa|rsa|rsa1]
Mode
User Exec, Privileged Exec and Global Configuration
Examples
To show the public keys generated on the device for SSH server, use the command:
awplus#
show crypto key hostkey
To display the RSA public key of the SSH server, use the command:
awplus#
show crypto key hostkey rsa
Output
Figure 62-1:
Example output from the
show crypto key hostkey
command
Parameter
Description
dsa
Displays the DSA algorithm public key. Both SSH version 1 and 2
connections can use the DSA hostkey
ecdsa
Displays the ECDSA algorithm public key. Both SSH version 1 and 2
connections can use the ECDSA hostkey.
rsa
Displays the RSA algorithm public key for SSH version 2 connections.
rsa1
Displays the RSA algorithm public key for SSH version 1 connections.
Type Bits Fingerprint
-----------------------------------------------------------
rsa 2058 4e:7d:1d:00:75:79:c5:cb:c8:58:2e:f9:29:9c:1f:48
dsa 1024 fa:72:3d:78:35:14:cb:9a:1d:ca:1c:83:2c:7d:08:43
rsa1 1024 e2:1c:c8:8b:d8:6e:19:c8:f4:ec:00:a2:71:4e:85:8b