Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 97
  • Last Modified:

SSH refused connection cisco switch

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
fofanah78
Asked:
fofanah78
  • 3
  • 2
  • 2
1 Solution
 
Shark AttackNetwork adminCommented:
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
 
fofanah78Author Commented:
Yes. Im consoled in @ the moment.
0
 
Shark AttackNetwork adminCommented:
did you check for RSA key? If you dont have it create it.
0
Become an IT Security Management Expert

In today’s fast-paced, digitally transformed world of business, the need to protect network data and ensure cloud privacy has never been greater. With a B.S. in Network Operations and Security, you can get the credentials it takes to become an IT security management expert.

 
JustInCaseNetwork EngineerCommented:
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
 
fofanah78Author Commented:
@ jovic
What's the command to clear ssh on the router?
0
 
JustInCaseNetwork EngineerCommented:
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
 
Shark AttackNetwork adminCommented:
i doubt this was the issue. so you're saying all your ssh lines were taken hang up?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now