cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1186
Views
0
Helpful
2
Replies

How to disable ssh for port forwarding .

kyoumans235
Level 1
Level 1

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 10.10.10.100 22 interface FastEthernet0 22

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

2 Replies 2

wong34539
Level 6
Level 6

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

http://www.cisco.com/en/US/tech/tk583/tk617/technologies_tech_note09186a0080094314.shtml#dis.

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

Review Cisco Networking products for a $25 gift card