ssh connectivity lost after power failure

Unanswered Question
Jun 1st, 2009

Hello all, My first question to this forum, not going to be my last. I'm new to networking at this level.

We have a remote 6506, the entire datacenter lost power due to a UPS failure. Now the 6506 seems to be switching correctly, but can no longer SSH into it, and even thought telnet was turned off - now we can telnet to it.

Is this normal, of all it's configuration parameters it only forgot it's ssh/telnet after a powerfailure?

I want to turn on the ssh and turn off the telnet with out messing anything else up. Any help? Thanks!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Collin Clark Mon, 06/01/2009 - 07:16

If you configured SSH and removed telnet, but forgot to save the config, the switch would use the saved config, not the running config. Check to see if SSH is enabled-

sh ip ssh

If not try configuring it-

SwitchOne(config)#crypto key generate rsa

Enter modulus: 1024

SwitchOne(config)#ip ssh time-out 60

SwitchOne(config)#ip ssh authentication-retries 2

Try the command again to see if it's running-

sh ip ssh

Reply when you get this far and we'll continue to troubleshoot.

murraythei Wed, 06/03/2009 - 05:27

This turned on ssh, can now ssh to the switch, but how do you turn off telnet?

Collin Clark Wed, 06/03/2009 - 05:37

Under your VTY's, set the input to SSH only.

line vty 0 15

transport input ssh

You can further restrict who can access the switch by using an ACL and access class under the VTY.

Not sure if this applies here but I've had some issues in the past where I can no longer connect using SSH after a failover or swapping out hardware. Normally recreating the cert fixes it.

crypto key generate rsa

As long as you have the following under your telnet lines it should use SSH and not telnet. Remember to put it on both 0 4 and 5 15.

transport input ssh


This Discussion