I hereby claim:
- I am hazrac on github.
- I am hazrac (https://keybase.io/hazrac) on keybase.
- I have a public key whose fingerprint is D4A9 82F6 AC66 8AC1 A48B A742 B739 6233 6791 881A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'rotp' | |
| # This is a script to use two factor authentication with public ssh keys (since you can't use PAM (g2fa) and public keys) | |
| # You must refrence this script in your sshd config: ForceCommand="/usr/bin/two_factor_ssh" | |
| # The script has to be executible by the user logging in | |
| # get the username of the user logging in | |
| user = ENV["USER"] |