When logging into the SSH server using public key authentication, an SSH client needs to read the local private key for authentication. As two algorithms (RSA or DSA) are available, the identity-keykeyword must be used to specify one algorithm in order to get the correct private key.

Specifying a Source IP address/Interface for the SSH client

This configuration task allows you to specify a source IP address or interface for the client to access the SSH server, improving service manageability.

Follow these steps to specify a source IP address/interface for the SSH client:

 

To do…

 

Use the command…

 

Remarks

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

Specify a source IP address

 

 

 

Required

 

 

ssh2 source-ip ip-address

 

By default, the system determines a

 

for the SSH client.

 

 

 

source IP address.

 

 

 

 

 

 

 

 

 

 

 

 

Specify a source interface

 

ssh2 source-interface

 

Required

 

 

interface-type

 

By default, the system determines a

 

for the SSH client

 

 

 

 

interface-number

 

source IP address.

 

 

 

 

 

 

 

 

 

 

Displaying and Maintaining SSH Configuration

 

To do…

Use the command…

Remarks

 

Display host and server public keys

display rsa local-key-pair public

 

 

 

 

 

 

Display client RSA public key(s)

display rsa peer-public-key [ brief

 

 

name keyname ]

 

 

 

 

 

 

 

 

 

Display local public key(s)

display public-key local { dsa

 

 

rsa } public

 

 

 

 

 

 

 

 

 

Display remote public key(s)

display public-key peer [ brief

 

 

name pubkey-name ]

 

 

 

 

 

 

 

 

 

Display SSH status and session

display ssh server { session

 

 

information

status }

Available in any

 

 

 

 

Display SSH user information

display ssh user-information

view

 

[ username ]

 

 

 

 

 

 

 

 

 

Display the current source IP address or

 

 

 

the IP address of the source interface

display ssh-server source-ip

 

 

specified for the SSH server.

 

 

 

 

 

 

 

Display the current source IP address

display ssh2 source-ip

 

 

specified for the SSH Client.

 

 

 

 

 

 

 

 

 

Display the mappings between host

 

 

 

public keys and SSH servers saved on a

display ssh server-info

 

 

client

 

 

 

 

 

 

1-21

Page 518
Image 518
3Com WX3000 Displaying and Maintaining SSH Configuration, Specifying a Source IP address/Interface for the SSH client