482
Parameters
interface interface-type interface-number
: Specifies a source interface by its type and number. The
SFTP packets use the primary IPv4 address of the interface as their source address.
ip
ip-address
: Specifies a source IPv4 address.
Usage guidelines
This command takes effect on all SFTP connections. The source IPv4 address specified in the
sftp
command takes effect only on the current SFTP connection. If you specify the source IPv4 address
both in this command and the
sftp
command, the source IPv4 address specified in the
sftp
command takes effect.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify
192.168.0.1
as the source IPv4 address for SFTP packets.
<Sysname> system-view
[Sysname] sftp client source ip 192.168.0.1
Related commands
display sftp client source
sftp ipv6
Use
sftp ipv6
to connect an SFTP client to an IPv6 SFTP server and enter SFTP client view.
Syntax
In non-FIPS mode:
sftp ipv6
server
[
port-number
] [
vpn-instance
vpn-instance-name
] [
-i
interface-type
interface-number
] [
identity-key
{
dsa
|
ecdsa-sha2-nistp256
|
ecdsa-sha2-nistp384
|
rsa
|
{
x509v3-ecdsa-sha2-nistp256
|
x509v3-ecdsa-sha2-nistp384
}
pki-domain
domain-name
} |
prefer-compress
zlib
|
prefer-ctos-cipher
{
3des-cbc
|
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
|
des-cbc
} |
prefer-ctos-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} |
prefer-kex
{
dh-group-exchange-sha1
|
dh-group1-sha1
|
dh-group14-sha1
|
ecdh-sha2-nistp256
|
ecdh-sha2-nistp384
} |
prefer-stoc-cipher
{
3des-cbc
|
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
|
des-cbc
} |
prefer-stoc-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} ] * [
dscp
dscp-value
| {
public-key
keyname
|
server-pki-domain
domain-name
} |
source
{
interface
interface-type interface-number
|
ipv6
ipv6-address
} ] *
In FIPS mode:
sftp ipv6
server
[
port-number
] [
vpn-instance
vpn-instance-name
] [
-i
interface-type
interface-number
] [
identity-key
{
ecdsa-sha2-nistp256
|
ecdsa-sha2-nistp384
|
rsa
|
{
x509v3-ecdsa-sha2-nistp256
|
x509v3-ecdsa-sha2-nistp384
}
pki-domain
domain-name
} |
prefer-compress
zlib
|
prefer-ctos-cipher
{
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
} |
prefer-ctos-hmac
{
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} |
prefer-kex
{
dh-group14-sha1
|
ecdh-sha2-nistp256
|
ecdh-sha2-nistp384
} |
prefer-stoc-cipher
{
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
} |
prefer-stoc-hmac
{
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} ] *
[ {
public-key
keyname
|
server-pki-domain
domain-name
} |
source
{
interface
interface-type
interface-number
|
ipv6
ipv6-address
} ] *
Views
User view
Predefined user roles
network-admin