I ended up collecting bits and pieces from a number of sites and checking it in as a README file in a Github repository: https://github.com/carniz/ubuntu-yubikey-setup Hope this can help someone else who wants to configure elementaryOS with Yubikeys.

Only top voted, non community-wiki answers of a minimum length are eligible