SSH Setup
In this lab I will show you how to set up a ssh connection using Cisco packet tracer.
There are 8 steps to set up
- Connect the routers via crossover cable
- Give each router a host name
- Give each router an IP
- Add the devices to a domain
- Gen Key
- Enable SSH traffic
- Create password
- Log in using SSH
Step1 – I picked two 1941’s routers, these will need a crossover ethernet cable to connect since they both are the same device type.(modern devices have built software configurations to automatically accept either crossover or straight through)
Step2 – I used the “en”(short for enable) command to allow me to write to the router and from there I typed in “conf t”(short for configuration terminal) command to make changed to any configuration setting on the router. We now can assign the router a host name(r0).
Step3– To assign IP I need to assign the IP to the port thats connecting the two devices together. In my case its interface g0/0(Gigabit port). I assigned the IP via “IP add” and give an private ip address along with a subnet. The “no shutdown” command changes the state of the interface from down to up. Now there will be connection as seen below, preform ping (IP Address) to confirm.

Step4 – Both router follow the same process so for the following steps i will show router1(r1) logs. I use the command “ip domain-name” to add the router to a domain i created(both routers are on the same domain).
Step5 – To generate the key(certificate) for the ssh connection I use the “crypto key generate rsa” command. This will let me pick the length of the key(bigger=more secure).
Step6 – We still need to enable ssh connection to be permitted so we use the command “line vty 0 15″(vty=virtual terminal line) these are responsible for allowing connection to device via ssh or telnet. Once in the selected line I configure the like to only take ssh for connection(telnet is not safe) I use the command “transport input ssh” to select ssh as the only connection type. We must do the same on the other router that we will be connecting to.
Step7 – Now i create a password for my ssh connection authentication
Step 8- To ssh into a device we need to use the format of “ssh -l (user) (ip)”. After this we will be prompted for the password, and thats it!