Page MenuHomeVyOS Platform

OTP key generation is broken
Closed, ResolvedPublic


When trying to generate an OTP key for a user, the following error is presented:

$ generate system login username vyos otp-key hotp-time rate-limit 3 rate-time 30 window-size 4
usage: [-h] -u USERNAME [-l RATE_LIMIT] [-t RATE_TIME] [-w WINDOW_SIZE] [-i INTERVAL] [-d DIGITS] error: unrecognized arguments: --rate-limit 3 --rate-time 30 --window-size 4

This appears to be due to a difference between the arguments passed to the script by the CLI and the arguments that the script expects. The script expects multi-word arguments to be delimited by underscores, but the CLI passes arguments delimited by dashes.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

MattK triaged this task as Normal priority.Jan 3 2024, 2:25 AM
MattK created this task.
MattK created this object in space S1 VyOS Public.
This comment was removed by MattK.
dmbaturin claimed this task.