Configure SSH on ASA

Configure SSH on a PIX

PIX(config)#hostname PIXOne
PIXOne(config)#domain-name mydomain.com
PIXOne(config)#ca generate rsa key 1024
PIXOne(config)#ssh time-out 60
PIXOne(config)#ssh 0.0.0.0 0.0.0.0 outside
PIXOne(config)#passwd your_password
PIXOne(config)#ca save all
PIXOne(config)#^Z
PIXOne#write memory

Configure SSH on an ASA
ASA(config)#hostname ASAOne
ASAOne(config)#domain-name packetpros.com
ASAOne(config)#username MMessier secret RaNdOmPaSsWoRd
ASAOne(config)#ssh time-out 60
ASAOne(config)#ssh 0.0.0.0 0.0.0.0 outside
ASAOne(config)#crypto key generate rsa modulus 2048

To view the key(s)
ASAOne(config)# show crypto key mypubkey rsa

Key pair was generated at: 06:55:35 UTC Apr 11 2007
Key name: Default-RSA-Key
Usage: General Purpose Key
Modulus Size (bits): 1024
Key Data:
30819f30 0d06092a 864886f7 0d010101 05000381 8d003081 89028181 009ae9f6
48cd45d4 253abd12 b1d0be70 c9b96a0a 6b671ee1 79fcaff0 12a2a95d e9ed830f
b9e9d8be 631095fc c1781dd3 b3447bf0 4f328693 8550d943 00909404 302ccebf
9397f1ba 6136a2ab 2d42b73d 87170c3d e28c4d1e 634baec7 57b49081 db97abb4
cbeb0d52 c5f5b4b5 9e962d2f 541fff53 96224d39 9d94985a ab5aa0c5 21020301 0001
Key pair was generated at: 07:01:04 UTC Apr 11 2007

Key name: ASAOne.mydomain.com
Usage: General Purpose Key
Modulus Size (bits): 1024
Key Data:
30819f30 0d06092a 864886f7 0d010101 05000381 8d003081 89028181 00e10511
ae6f0ee7 53c3e38b d7c91f4c 8fe08913 af89bf18 9ad5c0b0 41e44848 57be3689
c06a4ff8 63c51b28 cc71d8a5 d7f08bfb c44c57fd 7fa21170 ef4b1750 6546245a
574029dd d95e835f d5e56148 95a93fd5 775d0272 77469f4d 90a92a0b 79e7b03f
c978b7b6 9dab6d5a 8964d2f4 6329bfd6 c9f4ee5f 69fbe50d ea0e7fcf 73020301 0001

ASAOne(config)#

To remove a key(s)
ASAOneconfig)# crypto key zeroize rsa default
WARNING: The default key pair will be removed
WARNING: All device certs issued using these keys will also be removed and
the associated trustpoints may not function correctly.

Do you really want to remove these keys? [yes/no]: yes
ASAOne(config)#

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.