


Finally set the ssh timeout to 120 seconds with “ IP ssh time-out 120” command.Configure ssh to version 2 using “ IP ssh version 2” and set the authentication times to 3 with “ IP ssh authentication-retries 3” command.Configure the router to accept only ssh connection with “ transport input ssh” command.But here we configure ssh to use local username and password.

Remember that you can set a username and password for ssh with “ username Admin password Technig” command as well. Configure ssh to use local username and password with “ login local” command.Enabled ssh with “ line vty 0 4” command.Add username “ Admin” with Password of “ Technig” for ssh authentication.Then configure the router to use RSA key pair with modulus size of 1024 bites for remote service authentication with “ crypto key generate rsa ” command.I have set DNS domain name with “ IP domain-name” command.R1(config)#ip ssh authentication-retries 3

R1(config)#username Admin password Technig % Generating 1024 bit RSA keys, keys will be non-exportable. Choosing a key modulus greater than 512 may take The name for the keys will be: R1.Ĭhoose the size of the key modulus in the range of 360 to 2048 for your R1>Įnter configuration commands, one per line. It’s enough to learn how to configure SSH on Cisco router. In this example, I just enable and configure SSH on SW1 and trying to access it from PC1. Configure SSH on Cisco Router or Switch – Technig Just try to learn and do it what the SSH remote authentication needs.ĭownload the packet tracer lab or create your own lab. The configure on a packet tracer lab and real Cisco devices are the same. Let’s enable and configure SSH on Cisco router or switch using the below packet tracer lab. To configure SSH on Cisco router, you need to do:
