[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Authenticator apps



On 8/4/24 19:57, tomas@tuxteam.de wrote:
On Sun, Aug 04, 2024 at 05:44:07PM +0100, Mick Ab wrote:
I have a Debian Bullseye desktop PC.

I am looking for a 2fa authenticator that works on my desktop, without
using a smartphone or tablet.

I don't know what an "authenticator app" is. If what you need is TOTP,
oathtool (in the same-named Debian package) might be your friend.

What I do is, in a terminal:

   echo "MY-TOTP-SECRET-KEY" | oathtool -b --totp - | xclip -r -selection clipboard

I also use oathtool, but with an encrypted key:

gpg --decrypt --quiet key.asc | oathtool -b --totp -


Xclip (from the same-named package) puts the result in some X selection
(here I use the clipboard, because the result is going to the browser,
and those are too stupid to handle other X selections gracefully).

Copy via double-click and paste via single click works fine
here (for Firefox and Chromium) in X via SSH (the browsers
run inside an LXC container).

  Detlef


Reply to: