This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docu:chseet:ofsec:sec:otp_comand_line [2020/05/21 10:18] – created admin | docu:chseet:ofsec:sec:otp_comand_line [2020/08/17 09:34] (current) – admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| \\ | \\ | ||
| + | It is surely really handy to be able to **generate TOTP codes** on the command line, | ||
| + | as it can be used either as a **secure client**, or by integrating it on a **custom service**. | ||
| + | |||
| + | Instructions for **Debian-based** Linux' | ||
| + | <code bash> | ||
| + | apt-get install oathtool | ||
| + | |||
| + | # save the secrets somewhere | ||
| + | echo ' | ||
| + | echo ' | ||
| + | |||
| + | # create the current time code by file output | ||
| + | cat ~/ | ||
| + | cat ~/ | ||
| + | |||
| + | # (optionally), | ||
| + | # by using the xclip tool (apt-get install xclip) | ||
| + | cat ~/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | **Have a QR code on the screen** and don't know **how to copy** the secret value **manually**?? | ||
| + | unless the **service gives you the ability** to copy the secret directly, you **won' | ||
| + | |||
| + | Follow the **other guide** i made about [[docu: | ||