Viewing SSH only sessions

Example: Output for show ip ssh and show ip ssh strict with SSH and Telnet clients

The command show ip ssh strict displays both current SSH configuration and the status of active SSH connections.

  • The command displays Inbound SSH sessions on the switch.

  • The command does not display Active/Standby console sessions or Active/Stack-member sessions.

Switch(config)# show ip ssh 

		SSH Enabled     : Yes                 Secure Copy Enabled : No 
  TCP Port Number : 22                  Timeout (sec)       : 120  
  Rekey Enabled   : No                  Rekey Time (min)    : 60   
                                        Rekey Volume (KB)   : 1048576   
  Host Key Type   : RSA                 Host Key/Curve Size : 2048

  Ciphers : aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-ctr,
            aes192-cbc,aes128-ctr,aes128-cbc,3des-cbc
  MACs    : hmac-sha1-96,hmac-md5,hmac-sha1,hmac-md5-96

  Ses Type     | Source IP                                      Port 
  --- -------- + ---------------------------------------------- -----
  1   console  |
  2   telnet   |                                               
  3   ssh      | 30::3                                          38363
  4   inactive |
  5   inactive |
  6   inactive |
  7   inactive |

  Switch(config)# show ip ssh strict

  SSH Enabled     : Yes                 Secure Copy Enabled : No
  TCP Port Number : 22                  Timeout (sec)       : 120
  Rekey Enabled   : No                  Rekey Time (min)    : 60
                                        Rekey Volume (KB)   : 1048576
  Host Key Type   : RSA                 Host Key/Curve Size : 2048

  Ciphers : aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-ctr,
            aes192-cbc,aes128-ctr,aes128-cbc,3des-cbc
  MACs    : hmac-sha1-96,hmac-md5,hmac-sha1,hmac-md5-96

 Ses Type     | Source IP                                      Port
 --- -------- + ---------------------------------------------- -----
 2   ssh      | 30::3                                          38363
NOTE: The command excludes the Telnet session and displays the inbound SSH sessions on the switch.