MaxF1(config)# line vty 0 4
MaxF1(config-line)# login local
MaxF1(config-line)# privilege level 15
With this configuration, the device prompts for a username and password when accessing the vty lines, and upon successful authentication, the user is placed into privilege exec mode automatically.
I just tested both life now and the correct answer is D no doubt. To verify this make sure you did not configure local login as "username cisco privilege 15 secret 5 yyyyy". You will see that with the configuration you provided here, it will not work. Then, thereafter try another one with this settings "username cisco privilege 15 secret 5 yyyyy" and you will see that the correct answer is D. Thanks
ref: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960l/software/15-2_5_e/config-guide/b_1525e_consolidated_2960l_cg/b_1525e_consolidated_2960l_cg_chapter_0100001.pdf
line vty line
Example:
Switch(config)# line vty 10
Switch(config)# privilege level 15
Changes the default privilege level for the line. for normal user EXEC mode privileges. Level the level of access permitted by the enable password.
Option "c" works if password checking is enabled --using the 'login' command. The following configuration prompts the user to enter a password and automatically grants privilege EXEC mode when connecting via SSH:
--------
Router(config)# line vty 0 15
Router(config-line)# password 123
Router(config-line)# login
Router(config-line)# privilege level 15
-------
Since we're using both a username and a password for login --using the 'login local' command, it is essential to set the user privilege level to 15 (the highest privilege) as follows:
----------
Router(config)# username cisco privilege 15 secret 5 $1$cM67$v7NQK0g2BGit77x88U1/00
----------
With this configuration, any user logging in with the username "cisco" and the corresponding password will be placed directly into privilege EXEC mode upon authentication.
I'm going with C.
The question asks "Which action automatically enables privilege exec mode when logging in via SSH?". This sounds like they're asking REGARDLESS of the account you use to log in, not just limited to the user "cisco". C seems more accurate in this regard.
If they were asking specifically how to give the user "cisco" privileged access when logging in via SSH, then D would be more accurate.
The privilege command on the vty lines override all the privilege levels sent via RADIUS or set in the local database. And because the question implies "automatically" the clear answer is C
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
slacker_at_work
Highly Voted 10 months, 1 week agoAgba
5 months, 1 week agozbeugene7
Most Recent 3 days agoIgorLVG
5 days, 16 hours agoAbdullahMohammad251
3 months, 1 week agoAbdullahMohammad251
3 months, 1 week agoRfvaz
4 months, 1 week agoa197cbf
6 months agoapetrov
6 months, 3 weeks ago[Removed]
7 months, 3 weeks agoyasmiine
7 months, 4 weeks agonight_wolf_in
10 months agoslacker_at_work
10 months agoJasper
10 months, 4 weeks agogorillaenhanced
11 months agogorillaenhanced
11 months, 1 week agoMekai2020
12 months agoMekai2020
12 months ago