Solved

SSH refused connection cisco switch

Posted on 2016-11-22
7
31 Views
Last Modified: 2016-11-22
Any idea why ssh will refuse connections?  I  ssh into the switch yesterday and today it's refused my connection.  I checked the backup config from yesterday and today no changes were made using net++.
0
Comment
Question by:fofanah78
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

Expert Comment

by:Shark Attack
ID: 41897746
you need to verify the crypto key and ensure it's still there and generated. are you authenticating locally? do you have access to console?
0
 

Author Comment

by:fofanah78
ID: 41897750
Yes. Im consoled in @ the moment.
0
 
LVL 3

Expert Comment

by:Shark Attack
ID: 41897754
did you check for RSA key? If you dont have it create it.
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 28

Accepted Solution

by:
Predrag Jovic earned 500 total points
ID: 41897779
Check are all available vty lines in use. Maybe previous ssh sessions were not closed properly, so there is no free vty lines.

#sh users
#sh ssh

If that is the problem you can disconnect sessions by using:
#disconnect ssh ?
  <0-903>  The number of the active SSH connection
  vty      Virtual terminal
  x/y      Slot/Port for Modems
0
 

Author Comment

by:fofanah78
ID: 41897845
@ jovic
What's the command to clear ssh on the router?
0
 
LVL 28

Expert Comment

by:Predrag Jovic
ID: 41897909
Basics are typically the same, however can depend on device type.

If that happens too often configure login timeout on device (had to do it on one device):
# line vty 0 15
# exec-timeout <minutes>

You can also use global configuration mode:
# ip ssh time-out <sec>      <-- (1 -120 sec)
should do the trick.

Or you can configure TCL on device to periodically clear vty lines (at least some of them).

Also manually clearing vty line should be possible to do with:
#disconnect ssh 5
or
# clear line vty <number>           <-----  Reset a terminal line
0
 
LVL 3

Expert Comment

by:Shark Attack
ID: 41897938
i doubt this was the issue. so you're saying all your ssh lines were taken hang up?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article assumes you have at least one Cisco ASA or PIX configured with working internet and a non-dynamic, public, address on the outside interface. If you need instructions on how to enable your device for internet, or basic configuration info…
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question