Upload And Download Files Using Sftp - Digi Connect IT 4 User Manual

Hide thumbs Also See for Connect IT 4:
Table of Contents

Advertisement

File system
admin@192.168.4.1's password: adminpwd
Connect IT 4-23.3.31.129.bin
>
Transfer a file from the Connect IT 4 device to a remote host
To copy a file from the Connect IT 4 device to a remote host, use the
> scp host hostname-or-ip user username remote remote-path local local-path to
remote
where:
hostname-or-ip is the hostname or IP address of the remote host.
n
username is the name of the user on the remote host.
n
remote-path is the location on the remote host where the file will be copied.
n
local-path is the path and filename on the Connect IT 4 device.
n
For example:
To copy a support report from the Connect IT 4 device to a remote host at the IP address of
192.168.4.1:
1. Use the system support-report command to generate the report:
> system support-report path /var/log/
Saving support report to /var/log/support-report-0040D0133536-23-05-03-
21:24:00.bin
Support report saved.
>
2. Use the scp command to transfer the report to a remote host:
> scp host 192.168.4.1 user admin remote /home/admin/temp/ local
/var/log/support-report-00:40:D0:13:35:36-23-05-03-21:24:00.bin to remote
admin@192.168.4.1's password: adminpwd
support-report-0040D0133536-23-05-03-21:24:00.bin
>

Upload and download files using SFTP

Transfer a file from a remote host to the Connect IT 4 device
This example uploads firmware from a remote host to the Connect IT 4 device with an IP address of
192.168.2.1, using the username ahmed:
$ sftp ahmed@192.168.2.1
Password:
Connected to 192.168.2.1
sftp> put Connect IT 4-23.3.31.129
Uploading Connect IT 4-23.3.31.129 to Connect IT 4-23.3.31.129
Connect IT 4-23.3.31.129
100%
sftp> exit
$
Digi Connect IT® 4 User Guide
24M
830.4KB/s
00:00
Upload and download files
100%
36MB
11.1MB/s
scp
command as follows:
00:03
846

Advertisement

Table of Contents
loading

Table of Contents