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

You can also use the IS-IS host name or IS-IS system ID with the SSH client to establish a connection to another switch in the SPBM cloud.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Connect to a remote host:

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

Examples

Connect to the remote host using an IP address:

Switch:1>ssh 192.0.2.1 -l rwa

Connect to the SSH server on a remote switch using the IS-IS host name or system ID, as displayed in the show isis spbm unicast-fib command output. This example shows a partial ssh connection with only the relevant information.

Switch:1#show isis spbm unicast-fib 

===========================================================================================================================================
                                                        SPBM UNICAST FIB ENTRY INFO
===========================================================================================================================================
DESTINATION        BVLAN     SYSID            HOST-NAME                      OUTGOING         COST       AREA            AREA-NAME      
ADDRESS                                                                      INTERFACE           
-------------------------------------------------------------------------------------------------------------------------------------------
00:04:96:b0:78:84  4051      0004.96b0.7884   VSP-4900-48P                   1/1              2000       HOME            
f2:f7:11:ff:ff:ff  4051      0004.96b0.7884   VSP-4900-48P                   1/1              2000       HOME            
00:04:96:b0:78:84  4052      0004.96b0.7884   VSP-4900-48P                   1/1              2000       HOME            
f2:f7:11:ff:ff:ff  4052      0004.96b0.7884   VSP-4900-48P                   1/1              2000       HOME            


#Host name:
Switch:1>ssh VSP-4900-48P -l rwa
#System ID:
Switch:1>ssh 0004.96b0.7884 -l rwa
Trying ssh to ISIS system-id 0004.96b0.7884 as user rwa
#example text not included
rwa@fe80::0004:96b0:7884 %linuxsshtobmac's password: 
VSP-4900-48P:1>

Variable Definitions

The following table defines parameters for the ssh command.

Variable

Value

-l WORD<1–32>

Specifies the user login name for the remote SSH server.

-p <1-49151>

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

WORD<1–256>

Specifies the remote SSH server using one of the following:

  • host name
  • IP address
  • IS-IS host name
  • IS-IS system ID
Note: You cannot establish an SSH connection from an IS-IS remote area.