HP 6125XLG R2306-HP 6125XLG Blade Switch Security Command Reference - Page 166
Display the host public key of the local RSA key pair with the default name in SSH2.0 format.
View all HP 6125XLG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 166 highlights
{ Use the public-key local export rsa [ name key-name ] { openssh | ssh2 } filename command to export the host public key to the file. You cannot export the host public key to the folder pkey and its subfolders. 2. Transfer a copy of the file to the peer device, for example, by using FTP or TFTP in binary mode. 3. On the peer device, use the public-key peer import sshkey command to import the host public key from the file. SSH1.5, SSH2.0 and OpenSSH are different public key formats. Choose the proper format that is supported on the device where you import the host public key. In FIPS mode, only SSH 2.0 and OpenSSH are available. Examples # Export the host public key of the local RSA key pair with the default name in OpenSSH format to the file key.pub. system-view [Sysname] public-key local export rsa openssh key.pub # Display the host public key of the local RSA key pair with the default name in SSH2.0 format. system-view [Sysname] public-key local export rsa ssh2 ---- BEGIN SSH2 PUBLIC KEY ---Comment: "rsa-key-2012/06/12" AAAAB3NzaC1yc2EAAAADAQABAAAAgQDapKr+/gTCyWZyabuCJuJjMeMPQaj/kixzOCCAl+hDMmEGMrSfddq/b YcbgM7Buit1AgB3x0dFyTPi85DcCznTW4goPXAKFjuzCbGfj4chakSr+/aj1k3rM+XOvyvPJilneKJqhPT0xd v4tlas+mLNloY0dImbwS2kwE71rgg1CQ== ---- END SSH2 PUBLIC KEY ---- # Display the host public key of the local RSA key pair with the default name in OpenSSH format. system-view [Sysname] public-key local export rsa openssh ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDapKr+/gTCyWZyabuCJuJjMeMPQaj/kixzOCCAl+hDMmEGMrSfddq/b YcbgM7Buit1AgB3x0dFyTPi85DcCznTW4goPXAKFjuzCbGfj4chakSr+/aj1k3rM+XOvyvPJilneKJqhPT0xd v4tlas+mLNloY0dImbwS2kwE71rgg1CQ== rsa-key # Export the host public key of the local RSA key pair rsa1 in OpenSSH format to the file rsa1.pub. system-view [Sysname] public-key local export rsa name rsa1 openssh rsa1.pub # Display the host public key of the local RSA key pair rsa1 in SSH2.0 format. system-view [Sysname] public-key local export rsa name rsa1 ssh2 ---- BEGIN SSH2 PUBLIC KEY ---Comment: "rsa-key-2012/06/12" AAAAB3NzaC1yc2EAAAADAQABAAAAgQDevEbyF93xHUJucJWqRc1r8fhzQ9lSVprCI6ATZeDYyR1J00fBQ8XY+ q2olqoagn5YDyUC8ZJvUhlyMOHeORpkAVxD3XncTp4XG66h3rTHHa7Xmm7f1GDYlF0n05t8mCLVaupbfCzP8b a8UkrUmMO4fUvW6zavA5LYxtlAiQv0KQ== ---- END SSH2 PUBLIC KEY ---- # Display the host public key of the local RSA key pair rsa1 in OpenSSH format. system-view [Sysname] public-key local export rsa name rsa1 openssh ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDevEbyF93xHUJucJWqRc1r8fhzQ9lSVprCI6ATZeDYyR1J00fBQ8XY+ 157