Displaying SSH connection information

To display information about SSH connections, enter the show ip ssh command.

device#show ip ssh
Connection  Version  Encryption  Username  HMAC       Server Hostkey  IP Address  
Inbound:
     1      SSH-2    3des-cbc    Raymond   hmac-sha1  ssh-dss         10.120.54.2
Outbound:
     6      SSH-2    aes256-cbc  Steve     hmac-sha1  ssh-dss         10.37.77.15
SSH-v2.0 enabled; hostkey: DSA(1024), RSA(2048)
device#show ip ssh
Connection  Version  Encryption  Username  HMAC       Server Hostkey  IP Address  
Inbound:
     1      SSH-2    aes128-ctr    Raymond   hmac-sha1  ssh-dss         10.120.54.2
Outbound:
     
SSH-v2.0 enabled; hostkey: DSA(1024), RSA(2048)

Syntax: show ip ssh [ begin expression | exclude expression | include expression ]

This display shows the following information about the active SSH connections.

Table 13 SSH connection information

Field

Description

Inbound

Connections listed under this heading are inbound.

Outbound

Connections listed under this heading are outbound.

Connection

The SSH connection ID.

Version

The SSH version number.

Encryption

The encryption method used for the connection.

Username

The user name for the connection.

HMAC

The HMAC version

Server Hostkey

The type of server hostkey. This can be DSA or RSA.

IP Address

The IP address of the SSH client

SSH-v2.0 enabled

Indicates that SSHv2 is enabled.

hostkey

Indicates that at least one host key is on the device. It is followed by a list of the the host key types and modulus sizes.