#

Ubuntu

Have git use gpg2 for signing

1 minute read Published:

If you are using gpg2 instead of gpg then git will eventually throw an error about not being able to find your key or even the gpg binary. Just do a git config --global gpg.program gpg2 and add the following to your gitconfig [gpg] program = gpg2

Ubuntu 17.10 – gpg/ssh with USB token (yubikey)

1 minute read Published:

A shell script to properly configure GNOME to play nice with a Yubikey. This script allows you to use your Yubikey for GPG and SSH while leaving passwords and PK11 for GNOME keyring (Ubuntu 15.04-17.10) Copied from hyper3xpl0iter@github I just modified the deb source locations since the country mirrors of archive.ubuntu.org do not contain vivid anymore. Download it here CAVE: The removal of the new versions of gpg and so on also removes gnome-control-center so a sudo apt-get -y install gnome-control-center has to be done afterwards.

Ubuntu 17.10 – keepass auto-type

1 minute read Published:

Start by installing the xdotool package On Debian/Ubuntu/etc simply run: sudo apt-get install xdotool keepass2 Next find out where the keepass2 executable is installed on your system The easiest way to do this is to run: which keepass2 On my system this returns /usr/bin/keepass2 This file is actually not the program itself but a script that bootstraps the program. So to find out where the real executable run:

Good bye linux – hello (again) windows!

1 minute read Published:

After a recent apt-get update && apt-get dist-upgrade which also updated gpg-agent my smart cards (and therefore ssh auth for my servers) stopped to work. A ps aux|grep gpg-agent revealed that it´s now started with --supervised instead of the options given by me. Even a pkill gpg-agent and eval $(gpg-agent --options) didn´t help. A quick search in google found out that developers changed the start up but I did not want to dig any deeper and edit scripts or whatsoever again…

Debian stretch & gpg key card with ssh auth – the journey is over – finally?

1 minute read Published:

It looks like my journey to find a linux distribution where gpg and ssh authentication with a gpg smartcard works right out of the box is finally over. Thanks to Moritz Bartl from torservers.net who pointed me in the direction to Debian testing aka stretch. All I did was sudo aptitude install pcscd pcsc-tools gpgsm gnupg-agent scdaemon -y echo "use-agent" >> ~/.gnupg/gpg.conf echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf Commenting out use-ssh-agent in /etc/X11/Xsession.