H3C S7500E Series Command Manual page 1436

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – SSH
H3C S7500E Series Ethernet Switches
Parameters
openssh: Uses the format of OpenSSH.
ssh1: Uses the format of SSH1.
ssh2: Uses the format of SSH2.
filename: Name of the file for storing public key.
Description
Use the public-key local export rsa command to display the RSA local public key on
the screen or export it to a specified file.
If you do not specify the filename argument, the command displays the RSA local public
key on the screen; otherwise, the command exports the RSA local public key to the
specified file and saves the file.
SSH1, SSH2 and OpenSSH are three different public key file formats for different
requirements.
Related commands: public-key local create, public-key local destroy.
Examples
# Export the RSA local public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export rsa openssh key.pub
# Display the RSA local public key in SSH2 format.
<Sysname> system-view
[Sysname] public-key local export rsa ssh2
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20061105"
AAAAB3NzaC1yc2EAAAADAQABAAAAgKRkxFoZ+T72Srs9c60+j2yrkd0AHBsXBh0Uq+iNvE12Pa
YR1On4
x+aNlwe9fjW1PYgzH+DRkTpiMrn3j2pIs7gaJXvefTW94rbVWJ94uiSDk1NLX1JcoTtWnQcVhf
t3mUZ+
J0jBEhAcw4bROe7/qr6l7VTCo9FBZ0XgKuHroovX
---- END SSH2 PUBLIC KEY ----
# Display the RSA local public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export rsa openssh
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgLxMOSqXc0pjO6Dx2wH4TrUSKOyGreHbpZfg2QZv3E8Ed2
zqNhDSV4NB9dBJFDZW8Sh1AsBtOdOfKPD1y6Yw2ozRwW7OinplKC8kB+h1fnk33M2122IM0fRx
QBtxFxOXAjSERKLYkASXqHuNXxPWHE3vo9FKfcB2JHkfwdIm9i3z rsa-key
Chapter 1 SSH Configuration Commands
1-12

Advertisement

Table of Contents
loading

Table of Contents