Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to give high security for my linux box. So i planed to use my pen drive as key for my linux box.

How can i do it ?

share|improve this question
What is your backup plan in case you loose your pen-drive? – lamcro Sep 21 '10 at 16:16
up vote 4 down vote accepted

Additionally you can authenticate by usb device (including one time pads and any mix with other PAM modules of course). As tante said you can also store keys to harddrive on usb device.

share|improve this answer

If you mean to use a pendrive to decrypt and encrypt your harddrive, yes that is possible and actually not that complex. You can find full documentation at this Gentoo Wiki article (applies to other distributions as well)

share|improve this answer

Alternatively, check out the Yubikey concept, from Yubico. Pretty nice.

I used to use pam_usb, like Maciej suggests, but the project's last release is three years old.

share|improve this answer

You can put your whole Linux system on a 64G or 128G pendrive and boot from it. Your Linux box will be as secure as your pocket.

share|improve this answer
Do let me stress "secure as your pocket". Although not used for securing a whole box, I was using a thumb-drive on my (real) key chain as containing part of a key I needed to access a non-critical crypto (virtual) key-ring. I removed the thumb drive in order to take off a key, and poof, I need a new strategy (or at least redundancy). – msw Sep 20 '10 at 16:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.