SSH to cisco router

Answered Question
Apr 29th, 2008
User Badges:

I am trying to SSH to a router i have setup but is asks for a username and passwordn unlike telnet. I have read somewhere it doesn't use the line password as telnet does.

Not sure what i'm missing -

line con 0

login local

no modem enable

line aux 0

line vty 0 4

privilege level 15

password xxx


transport input telnet ssh


Correct Answer by Jon Marshall about 9 years 3 weeks ago

Have you looked at this specific part of the doc regarding setting up authentication on your router


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Jon Marshall Tue, 04/29/2008 - 03:04
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

You are correct. You either need a local username/password or use a AAA server as you cannot use ssh with the line password.

See this doc for detailed steps in setting up config for authentication.


rasoftware Tue, 04/29/2008 - 03:10
User Badges:

Hi, thanks for the reply.

I current have two local users account but neither works when I get the "login as" prompt when I ssh from putty.


username test1 privilege 15 secret 5 $1$X95I$L/M37ere8R6eK9/6jHeXS.

username test32 privilege 15 secret 5 $1$vyUH$bxviCeerlr0OrOb8Jn5db.1



Is there something else that needs setting?

rasoftware Tue, 04/29/2008 - 03:15
User Badges:

Ah - I missed off the #aaa new-model

Many thanks for the pointer!



This Discussion