This is a small docker file together with a startup script that I hacked together to get my yubikey running on any developer's computer that is around. It does not take care of the Yubikey used, so you can use it for your own.
You can use this docker image for
- SSH authentication
- Decrypting GPG-encrypted messages
- Signing messages
Encrypting is also possible, of course, but you may need to import public keys first.
First make sure your docker environment is working correctly and you
can start docker images, and that you have lsusb
installed. See for
example http://www.ubuntuupdates.org/ppa/docker on how to install
docker.
git clone https://github.com/lenalebt/goyubi.git
cd goyubi
./goyubi.sh
Simply do ssh user@server
. It will ask you for your Yubikey PIN and
log in.
Type gpg -d
, paste your message, press Ctrl-D
. It asks for your PIN
and displays your message.
Type gpg -e
, paste your message, press Ctrl-D
. It asks for your PIN
and displays the signature.