Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ -z "$3" ]];
- then
- echo "sh authy.sh <email> <countrycode> <cellphone>"
- else
- su
- wget 'https://raw.github.com/authy/authy-ssh/master/authy-ssh'
- bash authy-ssh install /usr/local/bin
- /usr/local/bin/authy-ssh enable `whoami` $1 $2 $3
- authy-ssh test
- service sshd restart
- fi
Advertisement
Add Comment
Please, Sign In to add comment