Understanding the SSH2 Client Functions on the Switch
An Extreme Networks switch can function as an SSH2 client. This means
you can connect from the switch to a remote device running an SSH2 server and send commands
to that device. You can also use SCP2 to transfer files to and from the remote
device.
Note
ExtremeXOS 15.7.1 upgraded from openssh-3.9p1 to openssh-6.5p1.
ExtremeXOS 21.1 adds the openssl-fips-ecp-2.0.9 open source library.
You do not need to enable SSH2 or generate an authentication key to use
the SSH2 and SCP2 commands from the ExtremeXOS CLI.
-
To send commands to a remote system using SSH2, use the
following command:
ssh2
{cipher [cipher} {mac
mac} {compression [on | off]}
{port
port} {user
username} {vr
vr_name} user@host {remote_command}
The remote commands can be any command acceptable
by the remote system. You can specify the login user name as a separate argument or as
part of the user@host specification. If the login user name for the remote system is the
same as your user name on the switch, you can omit the username parameter entirely.
For example, to obtain a directory listing
from a remote Linux system with IP address 10.10.0.2 using SSH2, enter the following
command:ssh2 admin@10.10.0.2 ls
-
To initiate a file copy from a remote system to the switch
using SCP2, use the following command:
scp2
{cipher
cipher} {mac
mac} {compression [on | off]}
{port
port} {vr
vr_name} [ user@host:file
local-file | local-file
user@host:file ]
For example, to copy the configuration file test.cfg
on host system1 to the switch, enter the following command:
scp2 admin@system1:test.cfg localtest.cfg
-
To initiate a file copy to a remote system from the switch
using SCP2, use the following command:
scp2
{cipher
cipher} {mac
mac} {compression [on | off]}
{port
port} {vr
vr_name} [ user@host:file
local-file | local-file
user@host:file ]
For example, to copy the configuration file engineering.cfg
from the switch to host system1, enter the following command:
scp2 engineering.cfg admin@system1:engineering.cfg