Pre-requisite
- Putty application
Enabling SSH
-
Connect to cisco console using putty.
-
Press the enter key to enter into user mode.
-
Execute the following command to enter into privilege mode:
enable -
Load the startup-config into the running-config using the following command:
copy startup-config running-config -
Execute the following command to enter into the configuration mode:
config terminal -
Change the hostname using the following syntax:
hostname -
Change the domain name using the following syntax:
ip domain-name -
Generate the SSH keys using the following command:
crypto key generate rsa general-keys -
On How many bits in the modules [512]:, type in 2048 and press the enter key.
-
Enable SSH version 2 using the following command:
ip ssh version 2 -
Create an SSH credential using the following syntax:
usernamesecret -
Create 5 (i.e. vty 0 to 4) virtual terminals for SSH connections, using the following command.
line vty 0 4 -
Allow only SSH to the newly created virtual connection using the following command:
transport input ssh -
Use only the local database for credentials using the following command:
login local -
Exit the virtual terminal configuration:
exit -
Exit the configuration mode:
exit -
Save the update on the running-config to the startup-config file using the following command:
copy running-config startup-config -
Using putty, connect on any known IP of the router via SSH using the credentials you made from step 11.
Leave a Reply