2
Management
30
Secure copy
To
upload
and
download
files
to
or
from
the
SEG,
the
Secure
Copy
(SCP)
protocol
can
be
used.
SCP
is
based
on
the
SSH
protocol
and
many
freely
available
SCP
clients
exist
for
almost
all
platforms.
The
command
line
examples
below
are
based
on
the
most
common
command
format
found
with
SCP
client
software.
Some
SCP
clients
might
use
different
syntax.
SCP command format
SCP
command
syntax
is
straightforward
for
most
console
based
clients.
The
basic
command
used
here
is
scp
followed
by
the
source
and
destination
for
the
file
transfer.
Upload
is
performed
with
the
command:
>
scp
<local_filename>
<destination_gateway>
Download
is
performed
with
the
command:
>
scp
<source_gateway>
<local_filename>
The
source
or
destination
SEG
is
specified
using
the
format:
<user_name>@<gateway_ip_address>:<filepath>
For
example:
admin@10.62.11.10:config.bak
.
The
<user_name>
must
be
a
defined
SEG
user
belonging
to
the
administrator
user
group.
Note:
SCP
will
normally
prompt
for
the
user
password
after
the
command
line
but
that
prompt
is
not
shown
in
the
examples
in
this
manual.
Examples of SCP uploading and downloading
In
some
cases,
a
file
is
located
in
the
SEG
root.
In
other
cases,
it
is
located
within
a
particular
folder.
For
example,
all
backup
files
are
located
in
a
subfolder
called
storage/backup
.
Uploading/downloading backup files
If
an
administrator
username
is
admin1
and
the
IPv4
address
of
the
SEG
is
10.5.62.11
,
to
upload
a
configuration
backup
file
called
config.bak
from
the
local
disk,
the
SCP
command
would
be:
>
scp
config.bak
admin1@10.5.62.11:backup/
To
download
a
configuration
backup
to
the
current
local
directory,
the
command
would
be:
>
scp
admin1@10.5.62.11:backup/config.bak
./
If
a
backup
file
is
not
uploaded
to
the
backup
folder,
it
becomes
unusable
but
will
be
deleted
after
a
system
restart.