06-14-2017 08:51 AM - edited 03-08-2019 10:58 AM
Hi,
I'm trying to telnet to a switch with username, password, and enable password that I set up.
I get a login prompt with username and password when I configure 'login local' under line vty 0 15 but no enable password although I configured it.
line vty 0 4
exec-timeout 5 0
password 7 040A5A1501245859060B0E
login local
transport input telnet
line vty 5 15
exec-timeout 5 0
password 7 040A5A1501245859060B0E
login local
transport input telnet
!
I get a login prompt with only password and enable password when I just configure 'login' under line vty 0 15.
Is there any way that I can get a login prompt with all username, password, and enable password when enabling telnet?
Thanks in advance!
06-14-2017 09:26 AM
Hello!
For you requirement with login local, you need to configure a global username and password. These are stored in the local database.
try in the privilege mode:
#username Cisco password class
and then try the telnet.
Greetings!
06-14-2017 10:54 AM
Hi,
Thanks for your reply. I don't have any problem to telnet to the device.
What I want is that I want to get a login prompt (username, password, and enable password).
'Login local' just helps me to get login prompt with username and password but not enable password.
If I just use 'login', I get a password and enable password but not username.
Thanks.
06-14-2017 11:12 AM
Hi!
If I understood correctly, you alredy has created a user and a password for login local, so when you enter by telnet to the device, the device asking for a user and then with a password.
and the last part is use a password for privilege mode, did you do use enable secret or enable password in your configuration?, my recomendation is use enable secret.
Greetings!
06-14-2017 11:39 AM
Hi,
I should've posted all configs. Yeah I already configured user and password and enable secret. But still I don't get enable password with 'login local' but with 'login' Please see the below,
enable secret 5 $1$3dSU$XLltVo8rMuPAInZbWvZ0y.
!
username xxx privilege 15 secret 5 $1$duz2$O1zhda.bcZweMMwQkK8Qs0
!
line con 0
line vty 0 4
exec-timeout 5 0
login local
transport input telnet
line vty 5 15
exec-timeout 5 0
login local
transport input telnet
!
06-14-2017 12:10 PM
I finally got this resolved.
When creating user and password, I removed privilege 15 and it worked.
Thanks!
06-14-2017 11:49 AM
This test config works for me.
Telnet server:
R4(config)#username cisco password cisco
R4(config)#enable password cisco
R4(config)#end
R4#sh run | i user
*Jun 9 16:23:46.413: %SYS-5-CONFIG_I: Configured from console by console
R4#sh run | sec vty
line vty 0 4
login local
line vty 5 15
login local
R4#
Test from a remote system:
R5-BGP4435#telnet 4.4.4.4
Trying 4.4.4.4 ... Open
User Access Verification
Username: cisco
Password:
R4>en
Password:
R4#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide