how do we login to a router(or maybe switch) using SSH from a desktop/laptop ? I have always logged in only using telnet.
What I do to be able to login using telnet is :
BigRouter11(config)#interface loopback 5
BigRouter11(config-if)#ip address 10.0.0.1 255.0.0.0
BigRouter11(config)#line vty 0 3
Once done this much, in the PC command prompt I type : telnet 10.0.0.1
and done- I am in the router CLI once in enter the password. (Although i am even able to login to router by telneting the interface IP to which the PC is connected, but mostly use the loopback int instead... not sure why ... )
WHAT CONFIGURATION SHOULD I MAKE IN THE ROUTER AND THE PC TO BE ABLE TO LOGIN TO THE ROUTER USING SSH ??
when i had to do it for first time first time i tried : ssh 10.0.01 and i got the message INVALID COMMAND ....
You will need a PC application that can use SSH, like the free tool "Putty".
On the router:
username admin privilege 15 secret cisco
ip domain name mydomain.com
crypto key generate rsa modulus 1024
line vty 0 4
Here is a video:
Don't forget that on the laptop side you will need to run a program line putty.exe in order to do ssh. You cannot do ssh from the command line like you do with telnet. Also the version of IOS you are running on the switch will need to support crypto keys, as an example if you are using older versions of IOS, like c3560-ipbase-mz.122-35.SE5 (I still have some switches running this version) they do not do crypto.