Do the following:
Linuxsource-Switch1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Linuxsource-Switch1(config-line)# password cisco Linuxsource-Switch1(config-line)# end Linuxsource-Switch1# wr
You don’t have to use the login command here, because that is already defined without a password!