Authy, a free app from Twilio, can generate one-time passwords (OTPs) on your laptop or desktop computer, which you can use when logging into the Savio high-performance computing cluster at UC Berkeley.
We recommend using the Authy app if you do not have a mobile device - such as most iOS or Android smartphones and tablets - capable of running the Google Authenticator app. (If you do have one of these, you can find setup instructions for your device in Logging into Savio.)
Authy is a Chrome app; that is, it requires the presence of the Chrome browser but works more like a desktop app than a browser extension. This app can be installed and used wherever Chrome runs, including on MS Windows, OS X / macOS, and Linux.
Setting up Authy
- Open (or switch to) the Chrome browser. (If you don't have that browser on your device, visit Google's Chrome Browser page to download and install it.)
- From within Chrome, download Authy.
In the following section of the download page (https://www.authy.com/app/desktop/), click the icon for the OS you're using:
- Then, on the Authy app page in the Chrome Web Store, click the '+ ADD TO CHROME' button near top right, and 'Add app' in the subsequent dialog.
- Visit your browser's Apps page, by entering
chrome://apps/in your browser's address bar and pressing the Return key. (You can also bookmark that page, for convenience.)
- Launch Authy by clicking its icon on your browser's Apps page:
- Follow the on-screen instructions to send a text message to your phone, or to call you. This will give you a code that you will need to enter into Authy.
(If you have a landline phone, or a cell phone that can't receive text messages, be sure to click the "Call" button - rather than the "SMS" button - at the "Verify my identity via" prompt.)
- Next, in Authy's window, click the "Settings" (gear) icon at upper left:
- Set up a Master password by entering text into that field, clicking the "Set" link, and then following the onscreen instructions:
- Click the Close ('x') button at upper right to get back to the Accounts screen.
- Click the red Plus ('+') button on that screen to create a new account. You'll now see a screen asking for you to enter a code:
- Now you'll leave Authy, go back to your main Chrome window, and get that code. Here's how to do that:
- Login to that web page by clicking the button for the external account (UC Berkeley CalNet, Google, Facebook, or LinkedIn) that you previously linked to your Savio/BRC cluster account.
(If, when doing so, you encounter the error message, "Login Error: There was an error logging you in. The account that you logged in with has not been mapped to a system account", please complete Step 1, on linking your personal account to a BRC cluster account, in Logging into BRC Clusters. Then, return right back here, to re-try this step in the Authy instructions.)
- From the "Token Management" page which appears, create a new token by clicking on "Add an HPC Cluster/Linux Workstation token" and following the onscreen instructions.
IMPORTANT: Remember the PIN that you are setting on the token.
Note: Even if you've already created one or more tokens for use with Google Authenticator on a smartphone or tablet, you'll still need to create a new token for use with Authy.
- After you've successfully created your new token, a QR code for that token will then be displayed.
- Because Authy doesn't have a way to scan the QR code (directly or via a helper app), you'll need to extract the 'secret' from the currently displayed webpage.
(The instructions that follow here are a bit tricky ("fiddly") so please be sure to pay close attention to both the instructions and screenshots.)
To do so, from Chrome's menus, choose "View -> Developer ... -> Developer Tools".
- Click the "Inspect Element" icon - the icon with the 'arrow in a box,' at the upper left of the right-hand panel.
- Then click on the QR code, so that code is highlighted:
- Over in the right-hand panel, you'll see some text highlighted, which will most likely begin with
img style=....(That's the HTML markup which corresponds to the image of the QR code, in the left-hand panel.)
Press the up arrow key on your keyboard - typically twice - until a block of text just before this is selected: the text that begins with
- Within that block of text, select and copy the "secret" text to the Clipboard. That's the text immediately following
secret=and ending before
&issuer=, in the token string that begins with
otpauth://, in the location shown by
secrettexttocopyisherein the example below:
The "secret" text will typically be 32 characters in length, and consist of both uppercase letters and digits.
If you can't easily select just that "secret" text within Chrome's Developer Tools window itself, as an alternative, you can paste in the full token and perhaps even some surrounding text into a text editor or word processing application, and select that text there. (If you do so, for optimum security, do not ever save that token - nor the "secret" text within that token - in any document on your disk.)
- Paste that "secret" text into the "Enter Code" field in Authy, next to the "Add Account" button.
(If Authy is hidden below your browser window, you can bring it back to the front: from Chrome's menus, select Windows -> Authy.)
Be sure to verify that the text pasted into the "Enter Code" field is exactly the same as the "secret" text in the token. (If these differ, even by only a single character, the one-time passwords that Authy generates will not work with Savio.)
- Click the "Add account" button.
- On the next screen, select a logo for your new Authy account and enter a name for that account. ("Savio" - or any similar name - is a reasonable option for an account name.) Then click "Done".
- At the "Your account has been created" prompt, click "Accept".
- Click the Close ('x') button at upper right, to move from the Settings screen, to the screen where you can generate one-time passwords.
- On the screen where you can generate OTPs, click on the logo (or name) for the account you just created:
- You should now see one-time passwords being generated: a new one will be displayed every 30 seconds:
(Authy displays the one-time password with a space between the first and last three digits. When you click the "Copy" button, however, the password is correctly copied to the clipboard without that space.)
Assuming the "secret" text you pasted into Authy's "Enter Code" field in step 19, above, was the correct text from your token, you've now successfully completed the process of setting up Authy to generate one-time passwords for Savio.
Logging into Savio
When you want to log into Savio:
- Use your terminal or SSH application to connect to
- At Savio's Password: prompt, enter your token PIN (but don't yet press Return).
- Click Authy's "Copy" button to copy the one-time password to the Clipboard.
- Then, at Savio's Password: prompt, immediately following the token PIN that you've already entered, paste in the one-time password from Authy and press Return.
(For more details on logging in, please see the Logging into Savio documentation.)
Launching the Authy app
To launch the Authy app later on:
- Open the Chrome browser.
- In Chrome, visit
- From the Apps page, open the Authy icon.
- Enter your Master password, and click "Unlock".
- You should now see the screen where you can generate one-time passwords. Click on the logo (or name) of your account, to start generating new one-time passwords.