Configuration manual
4. FTP, FTPS, TFTP and SFTP
54
www.qtech.ru
which is determined by the actual file size.
When you use a device to copy a file, if the "tftpSend: Transfer Timed
Out.Error: Tftp transmit error" message is printed, the cause may be that
the TFTP server function is not enabled, or the route between the server
and the client is not reachable.
4.3.4
Configure a Device as an SFTP Client
Network Requirements
A PC acts as an SFTP server, and Device acts as an SFTP client. The network between the
server and the device is normal.
On the SFTP server, the user name for a device to log in to the SFTP server is admin, and
the password is admin. The files to be downloaded are placed in the SFTP server directory.
The device acts as the SFTP client to upload files to and download files from the SFTP
server.
Network Topology
Figure 4-7 Networking for configuring a device as an SFTP client
Configuration Steps
Step 1:
Configure an SFTP server, and place the files to be downloaded in the SFTP server
directory. (Omitted)
Step 2:
Configure the IP addresses of the devices so that the network between the client
and the server is normal. (Omitted)
Step 3:
Device acts as the SFTP client to upload files to and download files from the SFTP
server.
#Download one file from the SFTP server to the file system of the device.
Device#sftp get 2.0.0.1 22 admin admin sp8-g-6.6.7(46)-dbg.pck sp8-g-
6.6.7(46)-dbg.pck
The authenticity of host '2.0.0.1 (2.0.0.1)' can't be established.
RSA key fingerprint is e4:dd:11:2e:82:34:ab:62:59:1c:c8:62:1d:4b:48:99.
Are you sure you want to continue connecting (yes/no)? yes
Downloading#################################################################
#######################################################################OK!
#Upload the startup file of the Device file system to the SFTP server.
Device#sftp put 2.0.0.1 22 admin admin startup startup.txt
The authenticity of host '2.0.0.1 (2.0.0.1)' can't be established.
RSA key fingerprint is e4:dd:11:2e:82:34:ab:62:59:1c:c8:62:1d:4b:48:99.
Are you sure you want to continue connecting (yes/no)? yes