Use it for initial setup, password recovery, and when in-band management is broken; and when securing the console line.
Console Access
1. show running-config | section line con — login method and exec-timeout set?
2. Method list ends with local, and a local admin account exists?
3. Terminal server: access restricted and authenticated?
4. Test a console login with the AAA server unreachable — the local account works.
5. logging console limited (or off) on busy devices.
physical or terminal-server access restricted → console line requires login → AAA with local fallback → session times out when idle → logins logged
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
line console 0Primary Commands
Configuration and operational commands for this Topic.
line console 0ReferenceEnter configuration for the console line.
Use when: Use this command at the Device Management / SSH / Management Plane boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A listening SSH service does not prove VTY ACL, AAA, authorization, return routing or safe recovery.
Cisco IOS / IOS XE · mixedpassword <password>ReferenceSet the line password (used with "login").
Use when: Use this command at the Device Management / SSH / Management Plane boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A listening SSH service does not prove VTY ACL, AAA, authorization, return routing or safe recovery.
Cisco IOS / IOS XE · mixedloginReferenceRequire the line password at login.
Use when: Use this command at the Device Management / SSH / Management Plane boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A listening SSH service does not prove VTY ACL, AAA, authorization, return routing or safe recovery.
Cisco IOS / IOS XE · mixedlogin localReferenceAuthenticate line logins against local usernames.
Use when: Use this command at the Device Management / SSH / Management Plane boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A listening SSH service does not prove VTY ACL, AAA, authorization, return routing or safe recovery.
Cisco IOS / IOS XE · mixedexec-timeout <minutes> <seconds>ReferenceDisconnect idle line sessions after the given time.
Use when: Use this command at the Device Management / SSH / Management Plane boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A listening SSH service does not prove VTY ACL, AAA, authorization, return routing or safe recovery.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
show users
show running-config | section line con
Inspect console login policy and idle timeout; independently validate the terminal-server access path and physical custody.
Step 2 Known-good, broken state and proof boundary Verify boundary
Known-good for Console Access means the intended object exists in the correct scope, the relevant show running-config | section line con fields agree with desired state, dependencies needed by the flow are reachable/usable, and the original operation succeeds again on the same target. Proof boundary: show running-config | section line con proves only the fields it exposes at that time; it does not by itself prove root cause, hidden provider state or end-to-end success.
Step 3 Failure Signatures Narrow the fault
Unreadable terminal text: inspect physical link and documented line parameters. Authentication fails: distinguish terminal-server rejection from target-console rejection. AAA outage removes recovery access: review the preplanned console method list and approved recovery procedure.
Step 4 Observation-driven branch tree Narrow the fault
Troubleshooting branch for Console Access: if show running-config | section line con cannot resolve the intended object, verify target identity/context first; if the object resolves but state differs from intended, isolate configuration, precedence and dependency ownership; if local state matches intent but the original operation still fails, move outward to the first adjacent dependency or consumer; if a minimal change alters the symptom without restoring the same failing operation, treat that as a changed failure boundary rather than closure.
Step 5 Verification & troubleshooting Narrow the fault
Step 6 Common mistakes Narrow the fault
- No password on the console line.
- Console server reachable from user networks.
- No
exec-timeout, leaving sessions open.
Protect it like any other login: login authentication <list> (AAA with local fallback) or login local, exec-timeout 5 0, and physical security of the device and terminal server. Make sure a local account works on the console even if the AAA server is down. Logging to the console (logging console) can slow a busy device; use logging buffered instead.
show running-config | section line con— login method, exec-timeout, transport.show line con 0— line settings and whether it is in use.show users— who is logged in on the console and VTY lines.show running-config | section aaa— the method list the console uses.show logging | include CONSOLE|login— console logins and failures.
ReferenceWhat it is1 section · depth on demand
Direct Answer
Console access provides local or terminal-server access independently of the normal in-band management route. Protect both the device and every remote path to its console.
ReferenceHow it works2 sections · depth on demand
Technical Mechanics
Physical access, terminal-server authentication and the target console login are separate boundaries. Out-of-band access still depends on its own power, connectivity and access controls. AAA owns method-list design and accounting; confirm the console policy still works during an AAA outage. Recovery procedures vary by device and boot environment: use the matching vendor procedure and a controlled maintenance window.
Native state ownership and command-scoped mechanics
The primary observation show running-config | section line con is a bounded read surface: correlate its fields with the configured intent, dependency state and the consumer that actually experiences the symptom.
ReferenceImportant terms & boundaries5 sections · depth on demand
Official Sources
Key operational limits
- SSHv2 protects the session; VTY policy still controls who may connect and how users authenticate
- Use a dedicated management VRF/interface where supported and restrict sources with ACL/firewall policy
- Disable Telnet and unused HTTP services
- Prefer named administrators, AAA, least privilege, timeouts and audit logging
- Preserve an out-of-band recovery path before changing remote access.
Proof Boundaries
A reachable terminal server is not proof of target-console access. A console prompt is not proof of physical security or successful disaster recovery. Device Hardening owns general hardening.
In depth
Console access to network devices
The console is the path of last resort: it works without IP, so it's used for initial setup and recovery, and it's also the path to password recovery for anyone with physical access. Cisco's IOS hardening guide covers both sides: protect the console with authentication and exec timeouts, and, where physical security can't be relied on, disable password recovery with no service password-recovery (keeping an offline copy of the configuration, since recovery then erases it).
Securing the console
| Setting | Purpose |
|---|---|
| Login with AAA, local fallback | Console works even when AAA servers are down |
exec-timeout | Unattended sessions close (the guide notes a 10-minute default) |
logging synchronous | Readable sessions |
| No logging to console on busy devices | The guide recommends no logging console to protect the CPU |
no service password-recovery | Physical access no longer reveals the configuration |
R1(config)# aaa new-model
R1(config)# aaa authentication login CONSOLE group TACACS-GROUP local
R1(config)# line con 0
R1(config-line)# login authentication CONSOLE
R1(config-line)# exec-timeout 5 0
R1(config-line)# logging synchronous
R1(config)# no logging console
R1(config)# no service password-recovery
R1# show line console 0 | include Timeouts|Idle EXEC
Remote console access
| Method | Notes |
|---|---|
| Console server (terminal server) | Reach consoles over a separate management network |
| Out-of-band network | Independent of the production network |
| Cellular OOB devices | For remote sites |
| USB console | On many current devices; same protections apply |
Console access in procedures
| Situation | Practice |
|---|---|
| Risky remote change | Confirm console or OOB access first |
| Lost AAA | Local fallback account documented in a vault |
| Password recovery | Only through the documented process, with approval |
Treat console servers as critical infrastructure: they give full access to every connected device.
Documented example, not captured output.
Quick reference
Console access connects directly to a device's console port (RJ-45, USB or mini-USB serial) and works even when the network is down. It is essential for initial setup, password recovery and recovery after a bad change.
line con 0
exec-timeout 10 0
logging synchronous
login authentication CONSOLE
Documented example, not captured output.
Typical settings are 9600 baud, 8 data bits, no parity, 1 stop bit. Console servers give remote out-of-band access; protect them like production management.
ReferenceConfiguration & state1 section · depth on demand
Cisco Configuration
State-changing local-login example for a device without AAA; create a protected local account first as described under SSH.
line console 0
login local
exec-timeout 10 0
For existing AAA, retain the reviewed console method list. Do not overwrite it with this standalone example. Secure terminal-server administration and reverse-console access with equivalent authentication and encrypted transport.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Lab device; names, addresses and secrets are examples.
username admin privilege 15 algorithm-type scrypt secret <secret>
!
line con 0
login local
exec-timeout 5 0
logging synchronousExpected output
show usersExpected state: Only the expected administrator on the console.
Line User Host(s) Idle Location
* 0 con 0 admin idle 00:00:00
! Illustrative output, not captured Evidence.`*` marks your own session. A console line with a session but no user name means the console is not asking for a named login.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → Console Access. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Deep reference
Healthy vs suspicious evidence
Expected Output
Expected state: the intended console line uses the reviewed authentication policy and a finite idle timeout. No sample device capture is supplied.