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++.
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?
ASKER
Yes. Im consoled in @ the moment.
did you check for RSA key? If you dont have it create it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@ jovic
What's the command to clear ssh on the router?
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
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?