3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
2183
<Sysname> system-view
[Sysname] public-key local export rsa ssh2
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20061105"
AAAAB3NzaC1yc2EAAAADAQABAAAAgKRkxFoZ+T72Srs9c60+j2yrkd0AHBsXBh0Uq+iN
vE12PaYR1On4
x+aNlwe9fjW1PYgzH+DRkTpiMrn3j2pIs7gaJXvefTW94rbVWJ94uiSDk1NLX1JcoTtW
nQcVhft3mUZ+
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 AAAAB3NzaC1yc2EAAAADAQABAAAAgLxMOSqXc0pjO6Dx2wH4TrUSKOyGreHb
pZfg2QZv3E8Ed2zqNhDSV4NB9dBJFDZW8Sh1AsBtOdOfKPD1y6Yw2ozRwW7OinplKC8k
B+h1fnk33M2122IM0fRxQBtxFxOXAjSERKLYkASXqHuNXxPWHE3vo9FKfcB2JHkfwdIm
9i3z rsa-key
public-key local export dsa
Syntax public-key local export dsa { openssh | ssh2 } [ filename ]
View System view
Parameter openssh: Uses the format of OpenSSH.
ssh2: Uses the format of SSH2.
filename: Name of the file for storing public key. The value range varies by devices.
Description Use the
public-key local export dsa command to display the DSA 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 DSA local
public key on the screen; otherwise, the command exports the DSA local public
key to the specified file and saves the file.
SSH2 and OpenSSH are two different public key file formats for different
requirements.
Related command: public-key local create, public-key local destroy.
Example # Export the DSA local public key in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export dsa openssh key.pub
# Display the DSA local public key in SSH2 format.
<Sysname> system-view
[Sysname] public-key local export dsa ssh2