On router 1
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#int s0/1/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#cl ra 64000
R1(config-if)#no sh
R1(config-if)#ex
Download Free CCNA Android Apps from Playstore
R1(config)#int f0/0
R1(config-if)#ip add 192.168.0.1 255.255.255.0
R1(config-if)#no sh
R1#wr
R1#conf t
R1(config)#ip domain-name eiheducation.in
R1(config)#crypto key generate rsa
How many bits in the modulus [512]: 1024% Generating 1024 bit RSA keys, keys will be non-exportable…[OK]
R1(config)#username student secret pass@123
R1(config)#line vty 0 4
R1(config-line)#transport in
R1(config-line)#transport input ssh
R1(config-line)#login local
R1(config-line)#exit
On router 2
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int s0/1/1
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config)#int f0/0
R2(config-if)#ip add
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no sh
R2(config-if)#^z
R2#wr
R2#ssh -v 2 -l student 192.168.1.1