$ ./vpn
$ ./vpn -d
$ ./vpn -s
$ ./vpn help
All of the following steps should preferably be carried out in your home directory. This guide is only valid for Linux and Mac. It is possible that windows support will be available in the future.
-
First the dependencies and cli authenticator (https://github.com/rfocosi/otp-cli) must be installed:
$ apt install coreutils $ apt install oathtool
$ brew install coreutils $ brew install oath-toolkit
-
Clone the repository:
$ git clone [email protected]:rfocosi/otp-cli.git
-
Next - adding a keychain:
$ ./otp-cli add
- Token name: the name of the keychain, for example, e.g. VPN (this is VPN_OTPLABEL variable in the script)
- Token key: passphrase for the authenticator
- Password: to automate the login process, password protection for the keychain itself is unnecessary - press Enter
- Confirm password: press Enter
- Replace the values of variables VPN_USERNAME, VPN_PASSWORD and VPN_OTPLABEL with your own