05-29-2024 06:51 AM
Hello,
I just upgraded a cisco ASA 5506 from 9.6-9.16(4)57 and I cannot ssh into it any longer.
Get an error: "server unexpectedly closed the network connection"
I can access via asdm.
I have ssh enabled and I have ssh allowed form only 2 machines (a local server and my laptop).
I'm thinking I need to generate a new crypto key.
My question is, if I do generate a new cry key, will that break my ipsec tunnels?
Thanks,
Solved! Go to Solution.
11-18-2024 06:25 AM
@Marvin Rhoads , I ran that command and received nothing in response.
11-18-2024 06:37 AM
Sorry,It should be:
show asp table socket | include 22
11-18-2024 06:57 AM
@Marvin Rhoads I ran that one and get this.
TCP 12338188 LISTEN x.x.x.x:22 0.0.0.0:* "x.x.x.x is my outside public"
TCP 13bed638 LISTEN x.x.x.x:22 0.0.0.0:* "x.x.x.x is my inside private"
11-20-2024 07:01 AM
@Marvin Rhoads , I did some testing this morning. I downgraded the firewall back to the previous version and SSH started working as expected. I then re-upgraded to the 9.16.4 version. After rebooting I was able to use SSH as expected. The really weird twist, is a couple hours later and SSH doesn't work again.
11-20-2024 07:52 AM - edited 11-20-2024 07:52 AM
@kcousino123 that sounds suspiciously like some system is logging in remotely and tying up all the available ssh lines. You can check this with "show ssh sessions" command. The default allows 5 ssh sessions to be active at any one time. (Similar to "line vty 0 4" in IOS devices.)
See also: https://www.tunnelsup.com/how-to-show-and-clear-user-sessions-on-a-cisco-asa/
11-20-2024 08:30 AM
Here is what I got in response.
asa# sh resource usage resource ssh
Resource Current Peak Limit Denied Context
SSH Server 6 6 5 116 System
problem is when I do show ssh sessions it responds with none.
How can I clear them? I tried to do 0-6 but it says there aren't any current.
11-20-2024 09:13 AM
They may be unauthenticated sessions in progress - especially if they are coming from random scanners. If you require outside access via ssh, then try locking it down to only allow your public IP address to see if that reduces the unknown incoming sessions.
(I'm not sure why the previous version doesn't exhibit the problem.)
11-20-2024 09:19 AM
Thank you for your help on this. I will consider it finished even though it is not resolved. From what I am seeing online, it appears to possibly be a bug. Hopefully, it will be resolved in future releases.
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