Wednesday, January 27, 2016

Cisco Switch: Allowed SSH Sessions

How many SSH sessions does this config below allow?

line vty 0 4
 access-class 180 in
 login local
 length 0
 transport input ssh
line vty 5 15
 login local
 transport input none

If you said 4, then you are incorrect.  If you said 15, then you are incorrect.  If you said 5, then you are correct.
I ran 6 SSH sessions to this switch below.  #6 got no response.

CiscoSwitch#sh ssh
Connection Version Mode Encryption  Hmac         State                 Username
0          2.0     IN   aes256-cbc  hmac-sha1    Session started       shane
0          2.0     OUT  aes256-cbc  hmac-sha1    Session started       shane
1          2.0     IN   aes256-cbc  hmac-sha1    Session started       shane
1          2.0     OUT  aes256-cbc  hmac-sha1    Session started       shane
2          2.0     IN   aes256-cbc  hmac-sha1    Session started       shane
2          2.0     OUT  aes256-cbc  hmac-sha1    Session started       shane
3          2.0     IN   aes256-cbc  hmac-sha1    Session started       shane
3          2.0     OUT  aes256-cbc  hmac-sha1    Session started       shane
4          2.0     IN   aes256-cbc  hmac-sha1    Session started       shane
4          2.0     OUT  aes256-cbc  hmac-sha1    Session started       shane
%No SSHv1 server connections running.
CiscoSwitch#

No comments:

Post a Comment

Your comment will be reviewed for approval. Thank you for submitting your comments.