CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

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

Networking for configuring a device as an SFTP client

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

Uploading###############################################################################################################################################################OK!

Step 4: Check the result.

#After copying, you can view whether the downloaded file exists in Device file system; view whether the uploaded file exists on the SFTP server (omitted).

Device(config-fs)#dir
  size          date       time       name
--------       ------     ------    --------
101526     MAR-01-2015  01:17:18   logging            
10147      MAR-26-2015  07:58:50   startup            
10207      MAR-01-2015  01:17:54   history                    
11676148    MAR-26-2013  07:51:32 sp8-g-6.6.7(46)-dbg.pck 
2048       JAN-10-2015  17:30:20   snmp