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...
Enter system view
Specify a source IP address
for the SSH client.
Specify a source interface
for the SSH client
Displaying and Maintaining SSH Configuration
Display host and server public keys
Display client RSA public key(s)
Display local public key(s)
Display remote public key(s)
Display SSH status and session
information
Display SSH user information
Display the current source IP address or
the IP address of the source interface
specified for the SSH server.
Display the current source IP address
specified for the SSH Client.
Display the mappings between host
public keys and SSH servers saved on a
client
Use the command...
system-view
ssh2 source-ip ip-address
ssh2 source-interface
interface-type
interface-number
To do...
—
Required
By default, the system determines a
source IP address.
Required
By default, the system determines a
source IP address.
Use the command...
display rsa local-key-pair public
display rsa peer-public-key [ brief
| name keyname ]
display public-key local { dsa |
rsa } public
display public-key peer [ brief |
name pubkey-name ]
display ssh server { session |
status }
display ssh user-information
[ username ]
display ssh-server source-ip
display ssh2 source-ip
display ssh server-info
1-21
Remarks
Remarks
Available in any
view