1-21
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-key keyword
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
for the SSH client. ssh2 source-ip ip-address Required
By default, the system determines a
source IP address.
Specify a source interface
for the SSH client
ssh2 source-interface
interface-type
interface-number
Required
By default, the system determines a
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
information display ssh server { session |
status }
Display SSH user information 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 current source IP address
specified for the SSH Client. display ssh2 source-ip
Display the mappings between host
public keys and SSH servers saved on a
client display ssh server-info
Available in any
view