4 Replies Latest reply: Apr 13, 2015 6:23 AM by Dimosthenis Atteia RSS

    HOW TO LOGIN TO ROUTER USING SSH ?

    1byn_mncn

      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-if)#no shut

      BigRouter11(config-if)#end

       

      BigRouter11#conf t

      BigRouter11(config)#line vty 0 3

      BigRouter11(config-line)#

      BigRouter11(config-line)#password telnetlogin

      BigRouter11(config-line)#login

      BigRouter11(config-line)#exit

      BigRouter11(config)#exit

      BigRouter11#

       

      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 ....

       

      Regards,