show ssh host-key

Syntax

show ssh host-key [ecdsa | ed25519 | rsa]

Description

Shows the public host keys for the SSH server. If the key type is not provided, all available host-keys are shown.

Command context

Manager (#)

Parameters

ecdsa

Selects the ECDSA host-key pair.

ed25519

Selects the ED25519 host-key pair.

rsa

Selects the RSA host-key pair.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Showing the ECDSA public host-key:

switch# show ssh host-key ecdsa

Key Type : ECDSA     Curve : ecdsa-sha2-nistp256

ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAhtuv5rABBBGs
...
O4mjVFGMVKZ87RWkyrxeQa2fAGZZEp1902K33/k3q17fA4EivRzC75YvjDu8=

Showing all public host keys:

switch# show ssh host-key

Key Type : ECDSA     Curve : ecdsa-sha2-nistp256
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAhtuv5rABBBGs
...
O4mjVFGMVKZ87RWkyrxeQa2fAGZZEp1902K33/k3q17fA4EivRzC75YvjDu8= 

Key Type : ED25519
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGb6910Jwoe8Hkl9K5YhqijrWI3yovNbiJVq6tw4WjJr4

Key Type : RSA       Key Size : 2048
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVCXlw43h4n1bwg9jI6DSBMngymCdPD0JUG42Sn9IS
...
nGSXtrNy6OmlFDJTAy+zz5Kd8d21ZLuhf07IHNgF3pff65Xc8qNJBv