Packet Tracer Labs

How To

  • Configure SSH on Cisco Router
  • VLAN Config
Configure SSH on Cisco Router

SSH – Secure Shell, is the preferred method for remote connectivity.  It is widely used among network engineers for remote connectivity.  SSH is more secure and preferred over Telnet.

  1. Assign your router a hostname
  2. configure domain name on your router
  3. Create RSA Key so the router can use for authentication and encryption of the SSH data
  4. Create SSH username and password for SSH connection
  5. Set SSH to version 2
  6. Set Line VTY Parameters – Configure the router to use SSH connection only
  7. Enable secret password
  8. Test connectivity

Step 1.

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1

Step 2.

Router1(config)#ip domain-name mylab.local

Step 3.

Router1(config)#crypto key generate rsa general-keys modulus 1024
The name for the keys will be: Router1.mylab.local

% The key modulus size is 1024 bits
% Generating 1024 bit RSA keys, keys will be non-exportable…[OK]
*Mar 1 0:2:24.852: %SSH-5-ENABLED: SSH 1.99 has been enabled

Step 4.

Router1(config)#username admin password cisco

Step 5.

Router1(config)#ip ssh version 2

Step 6.

Router1(config)#line vty 0 4
Router1(config-line)#login local
Router1(config-line)#transport input ssh

Step 7.

Router1(config)#enable secret cisco