KB ID 0001322
Besides allowing the permitted hosts to SSH to the ASA, you need to define RSA keys for the secure connection. In the CLI: crypto key generate rsa. For these key to work, you should have a hostname/domain-name configured on the ASA as well (unless you configure a dedicated RSA keys). May 20, 2014 Author, teacher, and talk show host Robert McMillen shows you how to use the Cisco ASA version 9 generate RSA keys command. Quickly Enable SSH on a Cisco Router or Switch. Asacommand – Run arbitrary commands on Cisco ASA devices GNS3 Networking Labs: All Access Course for CCNA, CCNP, CCIE and much more! New labs added on a regular basis on the following topics: CCNA, Network Automation, Python and more! Watch Promo Enroll in Course × Python Programming Training Videos - Cisco SSH Cisco Device.
I’ve lost count of the number of times this has happened to me! /linux-ssh-rsa-key-generation.html. Most of my colleagues prefer to use the ASDM for remote management, but if (like me) you work at command line, then sometimes people <ahem> forget to generate the RSA keypair when deploying a firewall. Then even if SSH access and AAA is setup correctly, you still can’t get in via SSH. Instead you see the following;
RoyalTS and RoyalTSX: ssh_exchange_identification: Connection closed by remote host.
PuTTY: PuTTY Fatal Error: Server unexpectedly closed network connection.
SecureCRT: Connection closed.
OSX/Linux: ssh_exchange_identification: Connection closed by remote host.
Now at command line you can fix this with a ‘Crypto Key Generate RSA Modulus 2048‘ command, but you can’t get to command line only ASDM.
On older versions of the ASDM you could generate the keypair in the Identification Certificates section (well you still can but only if you are also generating a certificate request file). So, as we are command line warriors, lets use the ASDM’s command line!
Tools > Command Line Interface > Multiple Line
Send > Wait a couple of minutes and try again.
REMEMBER: I’m assuming you have SSH setup correctly if not, see the following article;
NA
Since this is brand new, I highly recommend you upgrade ASDM and the firmware before you start..that way you won't have to upgrade later after you've got everything working the way you want it.
I suspect your IP change is failing because you're attempting to cut off the branch you're sitting on. How do security key generators work. The easiest way to do this is to use the console cable and change it via the command line. Set the port the way you want it, then configure the management port so you can get in and change things via ASDM