The configuration in Option B is the correct one because it includes the line console 0 command which specifies the console line, followed by the password command to set the password, and finally the login command which enables password checking. This sequence of commands ensures that any user accessing the console line is prompted for the password that was set with the password command.