beautypg.com

Displaying and maintaining ssh configuration, Comparison of ssh commands with the same functions – H3C Technologies H3C S3600 Series Switches User Manual

Page 914

background image

1-24

Displaying and Maintaining SSH Configuration

To do...

Use the command...

Remarks

Display the public key
information 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 information about SSH
status and about sessions of
active connections with SSH
clients

display ssh server { session | status }

Display information about all
SSH users

display ssh user-information
[ username ]

Display the current source IP
address or the IP address of
the source interface specified
for the SSH server.

display ssh-server source-ip

Display the mappings between
host public keys and SSH
servers saved on a client

display ssh server-info

Display the current source IP
address or the IP address of
the source interface specified
for the SSH Client.

display ssh2 source-ip

Available in any view

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-2

lists both the original commands and current commands.

Table 1-2 List of SSH configuration commands with the same functions

Operation

Original commands

Current commands

Display local RSA public
keys

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 RSA key pairs

rsa local-key-pair create

public-key local create rsa

Destroy RSA key pairs

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
for all SSH clients

ssh authentication-type default
rsa

ssh authentication-type
default publickey

This manual is related to the following products: