sftp client ipv6 source
Syntax
sftp client ipv6 source { ipv6 ipv6-address | interface interface-type interface-number }
undo sftp client ipv6 source
View
System view
Default level
3: Manage level
Parameters
ipv6 ipv6-address: Specifies a source IPv6 address.
interface interface-type interface-number: Specifies a source interface by its type and number.
Description
Use sftp client ipv6 source to specify the source IPv6 address or source interface for an SFTP client.
Use undo sftp client ipv6 source to remove the configuration.
By default, an SFTP client uses the IPv6 address of the interface specified by the route of the device to access the SFTP server.
To make sure the SFTP client and the SFTP server can communicate with each other, and to improve the manageability of SFTP clients in the authentication service, Hewlett Packard Enterprise recommends you specify a loopback interface as the source interface.
Related commands: display sftp client source.
Examples
# Specify the source IPv6 address of the SFTP client as 2:2::2:2.
<Sysname> system-view [Sysname] sftp client ipv6 source ipv6 2:2::2:2