Get your free beta license ↗
CMDCommand · run as root on the server · login family

urbestack-login-second-factor

First published 3 Oct 20260.1.0Unchanged since publication

Usage

# urbestack-login-second-factor --address IP [--recovery] [--agent TEXT] < challenge-and-code

Description

From the command's --help output
Verifies the second factor for a login and opens a session when the code is accepted. Put the
challenge returned by the first step on the first line of standard input and the authenticator
app code on the second. Use --recovery to supply a recovery code. An accepted recovery code can
only be used once. Use --address for the client IP address that started the login. The session
is bound to that IP address. --agent records the browser's user agent with the session, up to
255 characters.

Success returns verified true with the session token and consumes the challenge. Failure returns
verified false with a reason. The reason wrong includes the number of tries left. The fifth
wrong code ends the challenge and returns dead with zero tries left. The reason expired means
the challenge is missing, has expired, belongs to an inactive account or was issued for a
different IP address. Submitting a challenge from a different IP address invalidates it.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.

More in login

4 commands, by what they work onView all commands in this family →
urbestack-login-
urbestack-login-flag-
urbestack-login-second-
Generated from release 0.2.35 (current) · urbestack-login-second-factor --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-login-second-factor/