09-29-2006 03:30 PM - edited 03-09-2019 04:22 PM
Hello,
I've got a Cisco 1721 that I've configured to allow SSH connections into the router from the internet on port 2922. For some reason, the SSH connection randomly gets dropped, most of the times in the middle of typing a command. I don't think it's related to the length of time I've in the router because I usually can't stay on for more than 4 minutes. Any kind of help would be appreciated.
Thanks,
Brandon
Solved! Go to Solution.
09-30-2006 06:51 PM
Hi .. I have my doubts about your static NAT configurations .. If you modify the access-list applied to the ethernet0 (102) and allow ssh ( on port 22 ) are you able to ssh on port 22 to the router's E0 IP address from Outside ..? .. If you can and the connection is stable then your static NAT could be causing the problem.
I hope it helps .. please rate it if it does !!
09-29-2006 06:35 PM
zerioise the public key and then regenrate the key and then try again
check the public key and then try
09-30-2006 08:15 AM
What commands should I type in to do that? Thanks
09-30-2006 09:13 AM
I figured out the command to regenerate the public key but that still didn't fix my problem.
What I seemed to figure out was that it has something to do with the transmission rate or something. When I just connect to SSH but don't type anything, I stay connected for a long time. But, if I start typing a bunch of commands fast, it will kick me off within a minute or two. Doing a "show tech" will instantly kick me off when it gets to the "show run" part of it.
If I do the same thing from the LAN side, I have no problems. It only happens with remote SSH connections. Anyone have any ideas?
09-30-2006 09:17 AM
Brandon
In order to delete the RSA key pair, use the - crypto key zeroize command.
Also, what is the timeout length you configured on your box? The max time for SSH negotiation with remote device - the default is 120 secounds! The default authentication-retries is 3 and the max is 5.
Hope this helps and pls rate posts!
Jay
09-30-2006 12:02 PM
Hi Jay,
The timeout and auth-retrys are set to the defaults. 120 seconds and 3 retries. It looks like the max timeout length is 120 seconds. Should I change them to something else? Even right after logging into SSH remotely and typing "show tech" it will disconnect me. Putty says "Software caused connection abort" when I get disconnected.
To zeroize RSA key pair I actually did "crypto key zeroize rsa". Was that enough? Putty said the RSA key changed.
09-30-2006 06:51 PM
Hi .. I have my doubts about your static NAT configurations .. If you modify the access-list applied to the ethernet0 (102) and allow ssh ( on port 22 ) are you able to ssh on port 22 to the router's E0 IP address from Outside ..? .. If you can and the connection is stable then your static NAT could be causing the problem.
I hope it helps .. please rate it if it does !!
09-30-2006 10:17 PM
hi
i m trying to figure out how or is it possible to use ssh without having a
DOMAIN-NAME in your router`s config ???
correct me !!!
10-01-2006 07:51 AM
Good question. After I cleared the RSA key and stuff, I rebooted for good measure and before I could even log back in, it generated another one for me. On the DHCP settings though I've got it set to import all and I believe it's importing the domain name and other info when it grabs a DHCP address
10-01-2006 07:49 AM
Yep, that was it! Something with the static NAT translation it didn't like. I wanted to run SSH from a different port on the outside so there would be less of a chance that someone could try and break in.
The strange thing is, when I went back to the static NAT translation after allowing port 22, it worked then also. Looks like I'll just have to change the port through "ip ssh port" instead of using the translation. Thanks for your help!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide