Last active
August 7, 2017 13:06
-
-
Save dkavanagh/895d357abf6a8e87977fba43324da031 to your computer and use it in GitHub Desktop.
Get aws creds using 2FA and sign ssh key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run: awscreds.sh <mfa-code> | |
# works on OS X, replace path to key on last line | |
awsmfaf $1 | |
sshca-sign-user-key | |
ssh-add -D;ssh-add /Users/dakavanagh/.ssh/id_rsa2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment