372
Specifying the source IP address for SFTP packets
As a best practice, specify the IP address of a loopback interface as the source address of SFTP
packets for the following purposes:
•
Ensuring the communication between the SFTP client and the SFTP server.
•
Improving the manageability of SFTP clients in authentication service.
To specify the source IP address for SFTP packets:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify the source
address for SFTP
packets.
•
Specify the source IPv4 address
for SFTP packets:
sftp client source
{
ip
ip-address
|
interface interface-type
interface-number
}
•
Specify the source IPv6 address
for SFTP packets:
sftp client ipv6 source
{
ipv6
ipv6-address
|
interface
interface-type interface-number
}
By default, the source IP address
for SFTP packets is not
configured. For IPv4 SFTP
packets, the device uses the
primary IPv4 address of the
output interface specified in the
routing entry as the source
address of the packets. For IPv6
SFTP packets, the device
automatically selects an IPv6
address as the source address of
the packets in compliance with
RFC 3484.
Establishing a connection to an SFTP server
When you try to access an SFTP server, the device must use the server's host public key to
authenticate the server. If the server's host public key is not configured on the device, the device will
notify you to confirm whether to continue with the access.
•
If you choose to continue, the device accesses the server and downloads the server's host
public key.
•
If you choose to not continue, the connection cannot be established.
As a best practice, configure the server's host public key on the device in an insecure network.
After the connection is established, you are in SFTP client view of the server and can perform file or
directory operations.
The client cannot establish connections to both IPv4 and IPv6 SFTP servers.
To establish a connection to an IPv4 SFTP server:
Task Command
Remarks
Establish a
connection to an
IPv4 SFTP
server.
•
In non-FIPS mode:
sftp
server
[
port-number
] [
vpn-instance
vpn-instance-name
] [
identity-key
{
dsa
|
ecdsa-sha2-nistp256
|
ecdsa-sha2-nistp384
|
rsa
|
{
x509v3-ecdsa-sha2-nistp384
|
x509v3-ecdsa-sha2-nistp256
}
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
Available in user view.
Содержание FlexFabric 5940 SERIES
Страница 251: ...238 ...