Copying with secure copy (scp), Copying with ssh file transfer protocol (sftp), Copying from a server to running configuration – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 141

Creating and Managing Files
Software Reference for x310 Series Switches
C613-50046-01 REV A
AlliedWare Plus
TM
Operating System - Version 5.4.4C
6.17
If the file is not in the top level of the TFTP server, include the path as part of the filename.
Example
To copy example.cfg to the TFTP server at
172.1.1.1, enter the command:
The prompts, responses, and messages look like this:
To load the file “bob.key” from a TFTP server, where the file is in the folder “security”, use
the command:
Copying with Secure Copy (SCP)
Secure Copy (SCP) provides a secure way to copy files to and from a remote device using
SSH. The AlliedWare Plus
TM
OS includes both a SSH server and a SSH client. You must
enable the SSH server before your device accepts connections from SCP clients. See the
Chapter 52, Secure Shell (SSH) Introduction
for more information.
For example, to load the file “beth.key” onto Flash from the key directory on a remote SSH
server at 10.10.0.12, using the username “bob”, use the command:
Copying with SSH File Transfer Protocol (SFTP)
SSH File Transfer Protocol (SFTP) provides a secure way to copy files onto your device from
a remote device. The AlliedWare Plus
TM
OS includes both a SSH server and a SSH client.
SFTP provides additional features from SCP, such as allowing you to manipulate the
remote files, and halt or resume file transfers without closing the session.
For example, to load the file “rei.cfg” onto Flash memory from the remote server at
10.0.0.5, use the command:
Copying from a Server to Running Configuration
Use the copy tftp variant of the
copy running-config command on page 7.14
to load a
configuration file from a server to the running configuration of the switch.
The configuration will be added to the running configuration as if the commands were
typed in the command line interface.
awplus#
copy flash tftp
Enter source file name []:example.cfg
Enter destination host name []:172.1.1.1
Enter destination file name [example.cfg]:
Copying from source file, please wait...
Copying to destination file, please wait...
0: Successful operation
awplus#
copy tftp://security/bob.key flash:/bob.key
awplus#
copy scp://[email protected]/key/beth.key
flash:/beth.key
awplus#
copy sftp://10.0.0.5/rei.cfg flash:/rei.cfg