If I connect to cisco switch through vty and provide username & password only once which is wrong and then close the putty window, it results one occupancy in vty channel out of default 5 and never get disconnected until manually kill up the session.It happened with me most of time where login attempt was more than 4 and as a result I was unable to login to switch through vty. Finally device was connected through console port and session had to be killed.So it there any way out which will automatically kill those idle session.
line vty 0 4
exec-timeout 5 0
password 7 104D000A0618
transport input ssh
Line User Host(s) Idle Location
1 vty 0 noc idle 00:06:39 172.18.120.84
* 2 vty 1 admin idle 00:00:00 172.18.120.84