Skip to content

Instantly share code, notes, and snippets.

@deekayen
Created June 1, 2015 19:20
Show Gist options
  • Save deekayen/556de638dfb5a3ef12c9 to your computer and use it in GitHub Desktop.
Save deekayen/556de638dfb5a3ef12c9 to your computer and use it in GitHub Desktop.
Authy-ssh install instructions
Generating initial config on /usr/local/bin/authy-ssh.conf...
Adding 'ForceCommand /usr/local/bin/authy-ssh login' to /etc/ssh/sshd_config
MAKE SURE YOU DO NOT MOVE/REMOVE /usr/local/bin/authy-ssh BEFORE UNINSTALLIN
G AUTHY SSH
To enable two-factor authentication on your account type the following command:
sudo /usr/local/bin/authy-ssh enable root <your-email> <your-numeric-country-
code> <your-cellphone>
Example: sudo authy-ssh enable root myuser@example.com 1 401-390-9987
To enable two-factor authentication on user account type:
sudo /usr/local/bin/authy-ssh enable <local-username> <user-email> <user-cell
phone-country-code> <user-cellphone>
To uninstall Authy SSH type:
sudo /usr/local/bin/authy-ssh uninstall
Restart the SSH server to apply changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment