Created
July 16, 2018 04:06
-
-
Save erickmendonca/2271dfeac4dd29f38e8c689dcf1482fc to your computer and use it in GitHub Desktop.
Connect to VPN on Tunnelblick (macOS) with time-generated password
This file contains 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
-- connect to VPN on Tunnelblick with timegen password | |
tell application "/Applications/Tunnelblick.app" | |
set oauthpass to do shell script "oathtool --base32 YOUR_SECRET_HERE --totp" | |
connect "CONFIG_NAME" | |
delay 0.5 | |
tell application "System Events" to keystroke oauthpass | |
tell application "System Events" to keystroke return | |
end tell |
ok, thank you for the answer! cheers! ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! It's been a while. I actually don't remember how I set it up neither use Tunnelblick anymore.