All gists

matthew
Last active 18 hours ago

Simple script for creating a gist on an OpenGist installation

0 0 1
1 #!/bin/bash
2 # Create a gist from the current directory
3 #
4 # Creates a gist on an OpenGist instance from the current directory.
5 # It will take care of initializing the git repo, committing all files, and
6 # pushing to the configured endpoint. On completion, it will update the remote
7 # URL to the created gist.
8 #
9 # The script requires that you create the file $HOME/.config/create-gist/url,
10 # and it should have the endpoint to an OpenGist creation URL (e.g.
matthew
Last active 18 hours ago

Notes from my journey to getting Yubikey to authenticate everything on my system.

0 0 1

U2F for login and sudo access

I followed this guide: https://support.yubico.com/s/article/Ubuntu-Linux-login-guide-U2F

For step 3, I only did the user-specific pamu2fcfg setup; I did not put it at the system level. This makes the $HOME partition portable, and allows different users on the system to require U2F and/or use different keys.

Challenge-Response auth with YubiKey

When I originally purchased my key, and for four years thereafter, I used the challenge-response feature for restricting user authentication and sudo access.