1-1 
1  SSH Commands 
 
 
In this document, you can distinguish the local and peer as follows: if the local is an SSH server, the 
peer is an SSH client; if the local is an SSH client, the peer is an SSH server. 
 
SSH Commands 
display public-key local 
Syntax 
display public-key local rsa public 
View 
Any view 
Parameters 
rsa: Displays the public key of the current switch’s RSA key pair. 
Description 
Use the display public-key local command to display the public key information of the current switch’s 
key pair.  
The displayed local public key can be configured as the public key on the remote peer for  
authentication. 
Related commands: public-key local create. 
Examples 
# Display the public key part of the current switch’s RSA key pair.  
<Sysname> display public-key local rsa public 
 
===================================================== 
Time of Key pair created: 23:48:18  2000/04/03 
Key name: Sysname_Host 
Key type: RSA encryption Key 
===================================================== 
Key code: