Connect to a Remote Host using the SSH Client

Make an SSH connection to a remote host.

Before you begin

Enable the SSH server on the remote host.

About this task

The command format, for the CLI SSH client command, is similar to Telnet with two additional parameters: -l login and an optional -p port parameter.

On IPv6 networks, the switch supports SSH server only. The switch does not support outbound SSH client over IPv6. On IPv4 networks, the switch supports both SSH server and SSH client.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Connect to a remote host:

    ssh WORD<1–256> -l WORD<1–32> [-p <1–32768>]

Example

Connect to the remote host:

Switch:1>enable
Switch:1#ssh 192.0.2.1 -l rwa

Variable Definitions

The following table defines parameters for the ssh command.

Variable

Value

WORD<1–32>

Specifies the user login name of the remote SSH server.

-p <1-32768>

Specifies the port number to connect to the remote SSH server. The default is 22.