Skip to main content
Command reference

security ssh publickey show

Suggest changes

Display public host key

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The ` security ssh publickey show` command displays the SSH public host key and fingerprint for the specified Vserver.

Parameters

-vserver <Vserver Name> - Vserver

Identifies the Vserver for which you want to display the SSH public host key and fingerprint.

-host-key-algorithms <HostKey Algorithms>,…​ - List of SSH Host Key Algorithms to Display

Displays Vservers with matching host key algorithms.

Examples

The following command displays the

cluster1::> security ssh publickey show vs0 -host-key-algorithms rsa-sha2-256 ssh-ed25519
Host Key Algorithm: rsa-sha2-256
Public Key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCDfhxF/C1yLRVtzl1kz8syxWKIXjxeTpuUKplaHqozzbSutr4sz9YAk07Pfx7LlQ5BYL2/BTCcXPjrFzQ6Pplxi45+DP09jYn1MP11HgKduJNZgDyvyQK8HRSVhHnkcsKNIV4gh77GdeXiwjZfbaEEhn5+Tk+g720viVD+5W9NMyv/Q+a9yFfBSbcfs5umSfIiXNWRvCMybl0bkaDLn2BeENBaAiWDaBKakc2hDkXVkm+Fo2f06GUdx4HqNbu1w5Lg5dKtQ55Ba7S37h2NXXrQW1/mxw1Fa+ANZ5rtQBjuXRf+I4x6P7Dq+V3UPp0TPKp1j2ehJrboG3uRWi/al41HgbHHsYJDpdajfuGHMVcacG0kqxtek7VUUIdsZLVkzeg3t5CiQw2y4vebI7LqaOkMY6leF8uf8f89iOru1pQkskVo/+TBFGWd8/nr77YrlKCGaCxZpTkW8WUWSs+M9Hh3E4r6G3i94FfyF4UpYnhxzsecQcHzqBs5M/wKp6lm3oc=
Fingerprint: 3072 SHA256:ZYPsHq7y1ziSDvd218fHGg+bnfIP4d+CeSpknsRxA7g root@ (RSA)

Host Key Algorithm: ssh-ed25519
Public Key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHZOSxQxmiJqUKfkQ20FBnWAcDYmwLkRui4W1V235KEZ root@
Fingerprint: 256 SHA256:8CwFVQICXxOiUv7nMF/OR8LN/OuTGDNaAgJnO/bsiuI root@ (ED25519)