Using SSH for Secure Access
Problem
You want to use SSH for secure encrypted remote access to your router.
Solution
You can configure your router to run an SSH Version 1 server for VTY access:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#hostnameRouter1(config)#Router1ip domain-nameRouter1(config)#oreilly.comcrypto key generate rsaThe name for the keys will be: Router1.oreilly.com Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512]:Generating RSA keys ... [OK] Router1(config)# Jun 27 15:04:15: %SSH-5-ENABLED: SSH 1.5 has been enabled Router1(config)#1024ip ssh time-outRouter1(config)#120ip ssh authentication-retriesRouter1(config)#4endRouter1#
SSH became available in Cisco’s IOS, starting with release 12.1(1)T. However, only versions of IOS that support IPSec (DES or 3DES) encryption include SSH support. Note that there are severe restrictions on exporting any software that includes 3DES outside of United States and Canada.
Beginning with IOS Version 12.3(4)T, Cisco introduced support for SSH Version 2. The configuration is identical. However, only IOS versions that support 3DES encryption will support SSH Version 2. Also, the RSA key-pair size must be greater than or equal to 768.
Discussion
SSH provides a secure method of communication between network entities by the means of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access