Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet session only asks for Password, not username

Status
Not open for further replies.

badenhorstr

Technical User
Feb 6, 2002
15
ZA
HI am trying to login into one of our branch routers using Telnet. It connects, but only ask for a password. I have the config and know what the username and password is. The password in the config file does not work, in this telnet session. Does anyone know why this is happening ad how to fix this?
 
the problem might be because the "no exec" command is configured on your async lines.

or you have configured the "async mode interactive" command while Slip or PPP is disabled.
 
We have it setup like this!!!


aaa new-model
aaa authentication login default localusername sprint privilege 15 password 7 ?????????????


line con 0
exec-timeout 30 0
password 7 ??????
transport input none

line vty 0 4
exec-timeout 30 0
password 7 ??????

Jeter@LasVegas.com
J.Fisher CCNA
 
Have you applied the aaa authentication to the vty lines?

line vty 0 4
login authentication {default | list-name}

also, when you telnet into your router you will only be asked for a password authentication based on what you have configured on your line vty 0 4 password. for aaa configure.

line vty 0 4
login authentication sprint

Hope this helps


 
Thanks Guys,

The thing is, the router i can login to asks for a username and password. If you do a show run, it shows

line vty 0 4
login local

It does not state anything about a username and password. It does however, further in the beginning of the sh run, have the following.

enable secret 5 #$%#@^%$#&$%&$^&^%&
!
username ###### password 0 #####

I use this username and password to access the telnet session. Works fine. The other router, has the same config on paper (only copy i have, it is remote) but i cannot login in the same way.

Any ideas
 
Ok , It sounds like the router that your trying to telnet into does not have your router in its database.

i.e

Router A
__
/ / / __ __
Router B Router C

Lets say that your router B

Router A
username router_C password XXXXX
username rouetr_B password XXXXX (your missing this config)

router B
username router_A password XXXXX

route C
username router_A password XXXXX
 
Jeter,

The original config that you posted just had 'password xxxx' configured under the vty lines. This is a line password. What someone else was saying is that 'login local' under the vty config tells the router to use the local 'username name password pass' "database." You don't have to have separate usernames and passwords for coming in from different routers. If you know the username and password pair, you can telnet in from anywhere. The second config that you posted is different from the first one. It is set up for 'loging local.'
 
Jeter,

My appoligies for not doing a better job of tracking who was posting what when. I was ignoring someone in my office at the time I was working up my post so I guess I got a little of track. In any case, the 'login local' that was pointed out earlier is probably the key difference.

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top