175
Configuring the switch as an SSH client
SSH client configuration task list
Task Remarks
Specifying a source ip address/interface for the SSH client
Optional
Configuring whether first-time authentication is supported
Optional
Establishing a connection between the SSH client and server
Required
Specifying a source ip address/interface for the SSH client
Specify a source IP address or interface for the client to access the SSH server, improving service
manageability.
To specify a source IP address or interface for the SSH client:
To do…
Use the command…
Remarks
1.
Enter system view.
system-view
—
2.
Specify a
source IP
address or
interface
for the
SSH client.
Specify a
source IPv4
address or
interface for
the SSH client
ssh client source
{
ip
ip-address
|
interface
interface-type interface-number
}
Required.
Select either
approach.
By default, an SSH
client uses the IP
address of the
outbound interface
defined by the
route to the SSH
server to access the
SSH server.
Specify a
source IPv6
address or
interface for
the SSH client
ssh client ipv6 source
{
ipv6
ipv6-address
|
interface
interface-type interface-number
}
Configuring whether first-time authentication is supported
When the switch connects to the SSH server as an SSH client, you can configure whether the switch
supports first-time authentication.
•
With first-time authentication, when an SSH client not configured with the server host public key
accesses the server for the first time, the user can continue accessing the server and save the host
public key on the client. When accessing the server again, the client uses the saved server host
public key to authenticate the server.
•
Without first-time authentication, a client not configured with the server host public key refuses to
access the server. To enable the client to access the server, you must configure the server host
public key and specify the public key name for authentication on the client in advance.
Enable the switch to support first-time authentication
To do...
Use the command…
Remarks
1.
Enter system view.
system-view
—