Command line interface
Use the scp command
LR54 User Guide
1055
Note
For commands that operate on the LR54's file system, such as the
cp
,
ls
, and
mkdir
commands,
see
for information about the file system, including how to copy, move and delete files
and directories.
Use the scp command
The
scp
command uses Secure Copy Protocol (SCP) to transfer files between the LR54 device and a
remote host.
Required configuration items
n
The hostname or IP address of the remote host.
n
The username and password of the user on the remote host.
n
Whether the file is being copied to the LR54 device from a remote host, or to the remote host
from the LR54 device.
l
If the file is being copied to the LR54 device from a remote host:
o
The path and filename of the file on the remote host that will be copied to the LR54
device.
o
The location on the LR54 device where the file will be copied.
l
If the file is being copied to a remote host from the LR54 device:
o
The path and filename of the file on the LR54 device that will be copied to the remote
host.
o
The location on the remote host where the file will be copied.
Copy a file from a remote host to the LR54 device
To copy a file from a remote host to the LR54 device, use the
command as follows:
> scp host
hostname-or-ip
user
username
remote
remote-path
local
local-path
to
local
where:
n
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 path and filename of the file on the remote host that will be copied to the
LR54 device.
n
local-path
is the location on the LR54 device where the copied file will be placed.
For example:
To copy firmware from a remote host with an IP address of 192.168.4.1 to the /etc/config directory on
the LR54 device, issue the following command:
> scp host 192.168.4.1 user admin remote /home/admin/bin/LR54-22.8.33.50.bin
local /etc/config/scripts to local
[email protected]'s password: adminpwd
LR54-22.8.33.50.bin
100%
36MB
11.1MB/s
00:03
>
Содержание TransPort LR54
Страница 1: ...LR54 User Guide Firmware version 22 8 ...
Страница 506: ...Virtual Private Networks VPN OpenVPN LR54 User Guide 506 5 Click Apply to save the configuration and apply the change ...
Страница 628: ...Services Simple Network Management Protocol SNMP LR54 User Guide 628 The SNMP page is displayed 4 Click Download ...
Страница 1050: ...Command line interface Execute a command from the web interface LR54 User Guide 1050 The Admin CLI prompt appears ...
Страница 1095: ...Command line interface Command line reference LR54 User Guide 1095 reboot Reboot the system Parameters None ...