I'm using Putty to connect via a serial connection to the console. I have a line con 0
password set, as shown by show running-config
. I close this session (via Putty), reconnect, and the CLI prompt shows the last state I was in (in enable mode), and it does not prompt for a password.
I went into configuration -> line console 0 -> login local and it just returns the root with no indication that this command took effect. Either way, when I restart the session, it still does not prompt for password.
How can I get a serial session to prompt for a password at the start of a serial session, and how do I refresh the serial session?
Best Answer
YLearn is correct in that you are not properly disconnecting the session. If I understand the way you have this configured (password on the line,
login local
on the line, and no global username and password configured), when you properly disconnect the session byexit
, you will find yourself locked out of the router. If you uselogin local
it doesn't look for the password under the line configuration.Telnet, Console and AUX Port Passwords on Cisco Routers Configuration Example
This is how to use
login local
command: