Ivan Tomica

Installing OTP for pass (password-store) on OpenSUSE

I’ve been using password-store utility for saving my passwords in GPG encrypted files. Since I’m also using 2 factor authentication I’ve opted in to use pass-otp as a convenience.

As this extension is not in the official OpenSUSE repositories you will need to install it manually.

If you’re reading this I guess you already have password-store program installed. If so, you can proceed installing pass-otp extension right away. To do that, use:

git clone https://github.com/tadfisher/pass-otp
cd pass-otp
sudo make install

For extension to function properly you need to have oathtool which is part of an oath-toolkit. As this package is not available in the official OpenSUSE repositories you will need to download it from OBS. While at it download its dependencies too. Below are the links to packages you’ll need:


Download those packages by expanding your distribution (I’m using Tumbleweed so I’ll expand that section) and select appropriate architecture (I’m guessing you’re all using x86_64). Make sure it is for Tumbleweed and not OpenSUSE factory when downloading (hovering the link indicates which one it is).

Once packages are downloaded install them with command similar to this one:

sudo zypper in Downloads/liboath0-2.6.2-1.12.x86_64.rpm Downloads/libpskc0-2.6.2-1.12.x86_64.rpm Downloads/oath-toolkit-2.6.2-1.12.x86_64.rpm

This will differ depending on which package versions you download and where.

Tagged in:,
Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.


Leave a Reply

Your email address will not be published. Required fields are marked *