scripts

Authy SSH

Jun 2nd, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. if [[ -z "$3" ]];
  3. then
  4.     echo "sh authy.sh <email> <countrycode> <cellphone>"
  5. else
  6.     su
  7.     wget 'https://raw.github.com/authy/authy-ssh/master/authy-ssh'
  8.     bash authy-ssh install /usr/local/bin
  9.     /usr/local/bin/authy-ssh enable `whoami` $1 $2 $3
  10.     authy-ssh test
  11.     service sshd restart
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment