cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7114
Views
10
Helpful
1
Replies

Username and password telnet

Hi everyone I was setting up a telnet user and password. On the ccna books it says the following: """Step 1. Use the username name secret password global configuration command to add one or more
username/password pairs on the local switch.
Step 2. Configure the console to use locally configured username/password pairs:
A. Use the line con 0 command to enter console configuration mode.
B. Use the login local subcommand to enable the console to prompt for both username and
password, checked versus the list of local usernames/passwords.
C. (Optional) Use the no password subcommand to remove any existing simple shared
passwords, just for good housekeeping of the configuration file.
Step 3. Configure Telnet (vty) to use locally configured username/password pairs.
A. Use the line vty 0 15 command to enter vty configuration mode for all 16 vty lines
(numbered 0 through 15).
B. Use the login local subcommand to enable the switch to prompt for both username and
password for all inbound Telnet users, checked versus the list of local usernames/passwords.""" If I type in global configuration "username" it makes me create the username, but if I type "secret" it does not exist.
If I type enable secret, it creates a password that is not linked to my username. So what did I do ..... I enter the configuration mode line vty 0 15 and type password I follow the instructions (step 3 b) and I expect that at login with telnet access it asks me for username and password but it does not do this. When I log in via telnet it asks me for the username and after the password but the password is not the one set, on the contrary, simply pressing enter makes me enter. In short, I want to know how to do so that when I connect via telnet to be asked for the username and password for that user, what can I do? p.s. access on the switch

1 Reply 1

sorry for the trouble for the post i solved it was username and password immediately after not separately then sw1 (config) #username xxxx password yyyyy and after launch login local in line vty.