Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

How to disable ssh for port forwarding .

I would like to disable ssh on my 1711. I am trying to have a machine inside my network (NAT)answer the ssh login. I have the following:

ip nat inside source static tcp 22 interface FastEthernet0 22

It does not seem to work . The router keeps answering. I did remove ssh from the VTY lines.

  • WAN Routing and Switching

Re: How to disable ssh for port forwarding .

You must first verify whether SSH is configured on the switch to disable it.To verify if SSH has been configured on the switch, issue the show crypto key command. If the output displays the RSA key, then SSH has been configured and enabled on the switch. To remove the crypto key, issue the clear crypto key rsa command to disable SSH on the switch. Refer the following site

New Member

Re: How to disable ssh for port forwarding .

Did not seem to work. My router is IOS. The link that you refered to is for CatOS. My key remains even after the clear command.

I think this command did it.

Router(config)#crypto key zeroize rsa

thanks for the assist