Skip to content

Instantly share code, notes, and snippets.

@yareeh
yareeh / yubiaws.sh
Created January 6, 2021 08:03
YubiKeyAwsCliZsh
# Add this to your zshrc
# To set up the YubiKey to work with AWS CLI check
# https://scalesec.com/blog/why-your-yubikey-wont-work-with-aws-cli/
alias oath='ykman oath code -s $@ | pbcopy'
# Usage:
# awsCliSession <your-aws-profile-name>
# Your AWS profile name should also match the yubikey OATH key name for this to work

Keybase proof

I hereby claim:

  • I am yareeh on github.
  • I am yareeh (https://keybase.io/yareeh) on keybase.
  • I have a public key whose fingerprint is 12EB B8FD 3BA5 565E 7BC8 4D6A D5B7 6CAB 3D3D E1B5

To claim this, I am signing this object: