Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure a Device as SFTP Client

Network Requirements

  • PC acts as the SFTP server, Device acts as the SFTP client, and the network between the server and the device is connected.
  • On the SFTP server, set the user name of the device logging into the FTP server to admin and the password to admin; place the files to be downloaded in the directory of the SFTP server.
  • The device acts as the SFTP client to upload and download the file with the SFTP server.

Network Topology

Network topology for configuring the device as the SFTP client

Figure 2‑9 Network topology for configuring the device as the SFTP client

Configuration Steps

Step 1: Create VLANs, and add ports to the required VLANs.(Omitted)

Step 2: Configure the SFTP server and place the files to be downloaded to the directory of the SFTP server (omitted).

Step 3: Configure the IP address of the device, making the network between the client and the server be connected (omitted).

Step 4: Device acts as the SFTP client to download and upload the file with 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 in 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 5: Check the result.

#After copying, you can view whether the downloaded file exists in the Device file system and 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