Skip to content

SSH authentication modes

Different vendors authenticate differently. Cisco IOS challenges for a password at the SSH transport layer; Ciena TL1 accepts the SSH connection and authenticates in-band via an ACT-USER command. The --ssh-auth flag tells the server how to handle this across a mixed fleet.

Terminal window
--ssh-auth password # default
ModeBehaviour
password (default)Every device requires SSH password auth at the transport, regardless of driver.
driverEach driver decides. Cisco IOS requires SSH auth; Ciena TL1 does not (it authenticates in-band).
noneNo SSH transport auth for any device — connections are accepted, and authentication (if any) happens in-band.
  • password — the simplest and most common. Use it for all-Cisco fleets or whenever you want a uniform SSH password gate.
  • driver — the realistic choice for mixed-vendor fleets. A Cisco device behaves like Cisco (SSH password) and a Ciena device behaves like Ciena (open SSH, ACT-USER login), matching how your tooling must treat them in production.
  • none — useful for testing tooling that does its own in-band auth, or to isolate transport-layer behaviour from authentication.

The decision is driven by each driver’s RequiresSSHAuth() — see Drivers & vendors.

When SSH password auth is in effect:

  • A configured --password must match.
  • An empty --password accepts any password (handy for tooling that always sends something).
  • --username is currently informational; SSH auth is password-only.

For Ciena TL1 in-band login, the same accept-any-when-empty semantics apply to the ACT-USER credentials — see the Ciena TL1 driver.

Every transport-level attempt is counted in rcfgsim_auth_attempts_total{result="ok|fail"}, and handshake latency is tracked in rcfgsim_handshake_duration_seconds. See Metrics.