beautypg.com

Uploading files from a remote machine, Command changes – Allied Telesis RAPIER I User Manual

Page 146

background image

146

Secure Copy (SCP)

Release Note

Software Version 2.8.1
C613-10477-00 REV B

To upload a file from the router or switch, use the command:

upload method=scp [file=filename] [destfile=destfilename]

[{keyid=key-id|password=password}] [server={hostname|

ipadd|ipv6add}] [username=username]

Examples

In this example, the SCP server has an IP address of 192.168.1.2, with the
username “john”, and the password “secret” set on it. To upload the file
voip.cfg to the server, use this command on the router or switch:

upload method=scp server=192.168.1.2 username=john

password=secret file=voip.cfg destfile=voip.cfg

If desired, set the loader with defaults to make the process of uploading files
simpler in the future. Use the command:

set loader method=scp server=192.168.1.2 username=john

password=secret

Uploading Files from a Remote Machine

Secure Copy allows remote machines to load files from the router or switch. To
do this, do all of the following:

Check the router or switch is running as a SSH server with SCP enabled.

Configure the user so that they are allowed to use SSH.

Set either a password or RSA keyid on the router or switch to authenticate
the user. If using RSA authentication, set the public key onto the router or
switch.

Example

In this example, the username is “Alice” and the client machine is running
Linux. The router or switch has the IP address 192.168.1.1. To copy the file
voip.cfg from the router or switch, use this command on the client machine:

scp [email protected]:voip.cfg /root/voip.cfg

Command Changes

The following table summarises the modified commands:

Command

Change

load

New scp option for method parameter

New keyid parameter

Modified password parameter description

set loader

New scp option for method parameter

New keyid parameter

Modified password parameter description

show loader

New scp option for method parameter

Modified server parameter description

New username parameter

upload

New scp option for method parameter

New keyid parameter

New password parameter

New username parameter

This manual is related to the following products: