Link to home
Start Free TrialLog in
Avatar of fofanah78
fofanah78

asked on

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++.
Avatar of Shark Attack
Shark Attack

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?
Avatar of fofanah78

ASKER

Yes. Im consoled in @ the moment.
did you check for RSA key? If you dont have it create it.
ASKER CERTIFIED SOLUTION
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@ jovic
What's the command to clear ssh on the router?
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
i doubt this was the issue. so you're saying all your ssh lines were taken hang up?