This section describes how to configure the FW as an SFTP client and how to log in to the SFTP server.
When communicating with an SFTP server, the FW (SFTP client) needs to compare the public key sent by the server with the locally stored public key to check whether it is communicating with the correct server.
If the server public key is not obtained in advance and does not exist on theFW, enable first-time authentication on the FW to ensure that the FW can log in to the server.
If you have obtained the server public key in advance, you can copy the public key to the FW and bind the server to this public key. This method also ensures that the FW can log in to the server, but binding the server to the public key is complex. Therefore, first-time authentication is recommended.
Enable first-time authentication. |
|
Bind the SFTP server to an RSA public key. |
|
Bind the SFTP server to a DSA public key. |
|
Bind the SFTP server to an ECC public key. |
|
sftp [ -a source-address | -i interface-type interface-number ] host-ipv4 [ port ] [ [ public-net | -vpn-instance vpn-instance-name ] | prefer_kex { dh_group1 | dh_exchange_group | dh_group14_sha1 } | prefer_ctos_cipher prefer_ctos_cipher | prefer_stoc_cipher prefer_stoc_cipher | prefer_ctos_hmac prefer_ctos_hmac | prefer_stoc_hmac prefer_stoc_hmac| -ki aliveinterval | -kc alivecountmax | identity-key { dsa | rsa | ecc } | user-identity-key { rsa | dsa | ecc } ] *
[sysname] sftp 10.2.2.1 Please input the username:sysname Trying 10.2.2.1 ... Press CTRL+K to abort Connected to 10.2.2.1 ... The server is not authenticated. Continue to access it? [Y/N] :Y Save the server's public key? [Y/N] :Y The server's public key will be saved with the name 10.2.2.1. Please wait . ..
To improve file transfer security, use AES128 preferentially as the encryption algorithm. DES and 3DES are not recommended. Use SHA1 or SHA1-96 preferentially as the HMAC algorithm. MD5 and MD5-96 are not recommended.