Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SSH refused connection cisco switch

Posted on 2016-11-22
7
Medium Priority
?
76 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
Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

 
LVL 31

Accepted Solution

by:
Predrag earned 2000 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 31

Expert Comment

by:Predrag
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
Considering cloud tradeoffs and determining the right mix for your organization.
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 …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…
Suggested Courses

972 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