< Home

sftp client-source

Function

The sftp client-source command configures the specified address or interface as the source address or source interface of the device functioning as the SFTP client.

The undo sftp client-source command restores the default source address.

By default, the source address is 0.0.0.0.

Format

sftp client-source { -a source-ip-address | -i interface-type interface-number }

undo sftp client-source

Parameters

Parameter Description Value

-a source-ip-address

Specifies theIP address of the local FW.

-

-i interface-type interface-number

Specifies the interface of the local FW.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

If you run the sftp command to log in to an SFTP server without specifying a source address or source interface, the source address or source interface specified through the sftp client-source command is adopted by default. If you simultaneously run the sftp command and specify a source address or source interface, the indicated source address or source interface is adopted. When viewing the current SFTP connection on the server, the specified source IP address or the primary IP address of the indicated interface is displayed as the IP address of the user.

Example

# Set the source IP address of the SFTP client to 1.1.1.1.

<sysname> system-view
[sysname] sftp client-source -a 1.1.1.1
Info: Succeeded in setting the source address of the SFTP client to 1.1.1.1.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >