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
Examples
Showing the ECDSA public host-key:
switch# show ssh host-key ecdsa Key Type : ECDSA Curve : ecdsa-sha2-nistp256 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGs+zM76IZfHqj22rmHgSxMY0J/O4mjVFGMVKZ87RWkyrxeQa2fAGZZEp1902K33/k3q17fA4EivRzC75YvjDu8=
Showing all public host keys:
switch# show ssh host-key Key Type : ECDSA Curve : ecdsa-sha2-nistp256 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGs+zM76IZfHqj22rmHgSxMY0J/O4mjVFGMVKZ87RWkyrxeQa2fAGZZEp1902K33/k3q17fA4EivRzC75YvjDu8= Key Type : ED25519 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGb6910Jwo8Hkl9K5YhqijrWI3yovNbiJVq6tw4WjJr4 Key Type : RSA Key Size : 2048 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVCXlw43h4n1bwg9jI6DSBMngymCdPD0JUG42Sn9IS+IgB0kCftHnNTTh6IF91K3OWm7rIoToZFdBQvdMw5F5pHON3K1TMQYODqiWXI8a+Ay5gWBqaxovrMX925dJw6jOmgIq4xXKEW1/g41B4p93ZVYlZVYiHbdTOweJpZ0Ktdg2Fa0NlbxM7Yfnb8wVH77WtgMwbCfaqPKCgUFVTxg4g940IHDhmNVjTHTjf+K7A8PsdmCh9P8J4WqI6tO3yb1YgNCdxzO6AWZvVWX0D8WS5uy/mWXxH2nGSXtrNy6OmlFDJTAy+zz5Kd8d21ZLuhf07IHNgF3pff65Xc8qNJBv