Solved

SSH refused connection cisco switch

Posted on 2016-11-22
7
36 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 29

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 29

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

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…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
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…

740 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