ssh client source

Syntax

ssh client source { ip ip-address | interface interface-type interface-number }

undo ssh client source

View

System view

Default level

3: Manage level

Parameters

ip ip-address: Specifies a source IPv4 address.

interface interface-type interface-number: Specifies a source interface by its type and number.

Description

Use ssh client source to specify the source IPv4 address or source interface of the SSH client.

Use undo ssh client source to remove the configuration.

By default, an SSH client uses the IP address of the interface specified by the route of the device to access the SSH server.

To make sure the SSH client and the SSH server can communicate with each other, and to improve the manageability of SSH clients in the authentication service, Hewlett Packard Enterprise recommends you specify a loopback interface as the source interface.

Related commands: display ssh client source.

Examples

# Specify the source IPv4 address of the SSH client as 192.168.0.1.

<Sysname> system-view
[Sysname] ssh client source ip 192.168.0.1