Secure Shell Commands
©2008 Allied Telesis Inc. All rights reserved.
45.22
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
ssh
This command initiates a Secure Shell connection to a remote SSH server.
If the server requests a password for the user login, the user needs to type in the correct
password on "Password:" prompt.
SSH client identifies the remote SSH server by it’s public key registered on the client device. If
the server identification is changed, sever verification fails. If the public key of the server has
been changed, it is required that the public key of the server should be explicitly added to the
known host database.
Note:
Note that any hostname specified with ssh cannot begin with a hyphen (-) character.
Syntax
ssh
[
user
<username>
|
port
<1-65535>|
version
{
1
|
2
}]
<hostname>
[
<line>
]
Mode
Exec and Privileged Exec mode
Examples
To login to the remote SSH server at 192.168.1.1, use the command:
awplus#
ssh 192.168.1.1
To login to the remote SSH server at 192.168.1.1 as manager user, use the command:
awplus#
ssh user manager 192.168.1.1
To login to the remote SSH server at 192.168.1.1 that is listening TCP port 2000, use the
command:
awplus#
ssh port 2000 192.168.1.1
To run cmd command on the remote SSH server at 192.168.1.1, use the command:
awplus#
ssh 192.168.1.1 cmd
Parameter
Description
user
Login user. If user is specified, the username is used for login to the remote
SSH server when user authentication is required. Otherwise the current user
name is used.
<
username
>
User name to login on the remote server.
port
SSH server port. If port is specified, the SSH client connects to the remote
SSH server with the specified TCP port. Other- wise, the client port
configured by "ssh client" command or the default TCP port (22) is used.
<1-65535>
TCP port.
version
SSH client version. If version is specified, the SSH client supports only the
specified SSH version. By default, SSH client uses SSHv2 first. If the server
does not support SSHv2, it tries SSHv1 too. The default version can be
configured by "ssh client" command.
1
Use SSH version 1.
2
Use SSH version 2.
<hostname>
IP address or hostname of a remote server. Note that any hostname specified
with ssh cannot begin with a hyphen (-) character.
<line>
Command to execute on the remote server. If a command is
specified, the command is executed on the remote SSH
server and the session is disconnected when the remote
command finishes.