edledge-asa# conf tĮdledge-asa(config)# crypto key generate rsa modulus 2048 edledge-asa# sh run management-accessĬhange the RSA key String to 2048 bit. edledge-asa# sh run sshĬheck and ensure the management interface is configured. If SSH is not configured then Configure SSH on ASA to get SSH access working.Įnsure the source from where you are trying to SSH is allowed for connection. To check the SSH status, execute the command on the ASA as shown below. Assuming ICMP is allowed.Ĭheck if SSH is configured onto the Firewall. Ping the ASA from the source you are trying to SSH and ensure the device is reachable or pinging. Some of the most common reason and its solution is mentioned below. SolutionĪs mentioned above there could be many reasons behind the issue of connection error. We could also get the error if the source from where we are trying to SSH onto the ASA is not allowed or whitelisted for SSH connections to the Firewall. There could be many reasons behind the issue but we generally get this error because either SSH is not configured on the ASA or SSH is configured but services are not responding. Sometimes when we SSH onto a Cisco Firewall we get an error “ Server unexpectedly closed network connection” and SSH access gets failed as shown below.
![reset cisco 5505 asa ssh connect reset cisco 5505 asa ssh connect](https://www.networkstraining.com/wp-content/uploads/2009/06/asa-5510-basic-configuration.jpg)
![reset cisco 5505 asa ssh connect reset cisco 5505 asa ssh connect](https://community.cisco.com/legacyfs/online/legacy/0/6/2/65260-ASA-MODEM-Setup-Marselis.jpg)
Model: All Cisco Firewall Models ĭescription: In this article, we will discuss the cause and its solution to the issue when we get an error while doing SSH onto the Cisco ASA Firewall.