Configure SSH Cisco

Make sure that target router are running Cisco IOS Release 12.1(1)T image or later to support SSH.

Before continuing this task don't forget to change the hostname of the router

R1(config)#ip domain-name jpudasaini.com.np
R1(config)# crypto key generate rsa

The name for the keys will be: R1.jpudasaini.com.np
Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus[512]: 768
% Generating 768 bit RSA keys, keys will be non-exportable...[ok]

R1(config)#ip ssh time-out 60
R1(config)#ip authentication-retries 3
R1(config)#username jayaram secret cisco
R1(config)#line vty 0 15
R1(config-line)#transport input ssh
R1(config-line)# exit

after this configuration you can login
R1#ssh -l {login with(login name)} -v [ssh version 1 or 2] [remote server name]