Operation Manual – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Configuration
1-25
1.5 Displaying and Maintaining SSH Configuration
To do...
Use the command...
Remarks
Display the public key part of the
current switch’s key pairs
display public-key local
{
dsa
| rsa
}
public
Display information about locally
saved public keys of SSH peers
display public-key peer
[
brief
|
name pubkey-name
]
Display SSH status and session
information
display ssh server
{
session
|
status
}
Display SSH user information
display ssh user-information
[
username
]
Display the mappings between host
public keys and SSH servers saved
on a client
display ssh server-info
Available
in any
view
1.6 Comparison of SSH Commands with the Same Functions
After the SSH protocol supports the DSA asymmetric key algorithm, some SSH
configuration commands are changed. For the sake of SSH configuration compatibility,
the original commands are still supported.
Table 1-18
lists both the original commands
and current commands.
Table 1-18
List of SSH configuration commands with the same functions
Operation
Original commands
Current commands
Display local RSA
public key(s)
display rsa local-key-pair
public
display public-key local
rsa public
Display information
about the peer RSA
public keys
display rsa
peer-public-key
[
brief
|
name keyname
]
display public-key peer
[
brief
|
name
pubkey-name
]
Generate a RSA key
pair
rsa local-key-pair create
public-key local create
rsa
Destroy a RSA key
pair
rsa local-key-pair destroy
public-key local destroy
rsa
Enter public key view
rsa peer-public-key
keyname
public-key peer keyname
Import RSA public key
from public key file
rsa peer-public-key
keyname import sshkey
filename
public-key peer keyname
import sshkey filename
Specify publickey
authentication as the
default authentication
type
ssh authentication-type
default rsa
ssh authentication-type
default publickey