Using SCP2 from an External SSH2 Client
In ExtremeXOS, the SCP2 protocol is supported for transferring
configuration, image and public key policy files to the switch from the SCP2 client. The
user must have administrator-level access to the switch. The switch can be specified by its
switch name or IP address. ExtremeXOS only allows SCP2 to transfer to the switch files named
as follows:
- *.cfg—ExtremeXOS configuration files
- *.pol—ExtremeXOS policy files
- *.xos—ExtremeXOS core image files
- *.xmod—ExtremeXOS modular package files
- *.ssh—Public key files
In the following examples, you are using a Linux system to move files to
and from the switch at 192.168.0.120, using the switch administrator account admin. You are
logged into your Linux system as user.
-
To transfer the primary configuration file from the switch
to your current Linux directory using SCP2, use the following command:
[user@linux-server]# scp2 admin@192.168.0.120:primary.cfg primary.cfg
-
To copy the policy filename test.pol from your Linux
system to the switch, use the following command:
[user@linux-server]# scp2 test.pol admin@192.168.0.120:test.pol
-
To copy the image file test.xos from your Linux system to
the switch, use the following command:
[user@linux-server]# scp2 test.xos admin@192.168.0.120:test.xos
Now you can use the command install
image test.xos to install the image in the switch.
-
To copy the SSH image file test.xmod from your Linux
system to the switch, use the following command:
[user@linux-server]# scp2 test.xmod admin@192.168.0.120:test.xmod
Now you can use the command install
image test.xmod to install the image in the switch.
-
To load the public key id_rsa.pub from your Linux system
to the switch, use the following command:
[user@linux-server]# scp2 id_rsa.pub admin@192.168.0.120:test.ssh
This command loads the key into
memory, which can be viewed with the command show sshd2
user-key.