Configure a username and secret on Cisco Switch and Router

Here is the needed syntax to have this configured on a Cisco Router or Switch

Switch#username christian privilege 15 secreet passwordhere

Now you have to configure your line console needed for console access and vty ports need for telnet and ssh login.

For Line Console 0, enter the line configuration mode using the commands below followed by “login local” at the next prompt.

Switch#line console 0
- login local

For VTY Access via SSH and Telnet (Note: Using Telnet is not recommended). Enter the following command below followed by entering “login local” at the next prompt.

Switch#line vty 0 5
- login local

Note: You will have to set up (configure SSH differently)