I tried installing revision 36e726 as my regular unprivileged user and got this error:
$ ./authy-ssh install ~/.authy-ssh/
root permissions are required to run this command. try again using sudo
I shouldn't need root permissions to install something in my home directory, but I'll humor the installer:
$ sudo ./authy-ssh install ~/.authy-ssh
/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo
That's... odd.
+ VERSION=1.2
+ AUTHY_URL=https://api.authy.com
++ dirname ./authy-ssh
+ APP_ROOT=.
+ CONFIG_FILE=./authy-ssh.conf
+ UPSTREAM_URL=https://raw.github.com/authy/authy-ssh/master/authy-ssh
+ READ_TIMEOUT=60
+ OK=0
+ FAIL=1
+ export TERM=xterm-256color
+ TERM=xterm-256color
++ tput sgr0
+ NORMAL=''
++ tput setaf 2
++ tput bold
+ GREEN=''
++ tput setaf 3
+ YELLOW=''
++ tput setaf 1
+ RED=''
+ require_curl
+ which curl
+ '[' 0 -eq 0 ']'
+ return 0
++ dirname ./authy-ssh
+ cd .
++ basename ./authy-ssh
+ COMMAND=/Users/doug/tmp/authy-ssh/authy-ssh
+ cd -
+ case $1 in
+ require_root
+ debug 'Checking if user is root'
+ [[ -n '' ]]
+ find_sshd_config
+ debug 'Trying to find sshd_config file'
+ [[ -n '' ]]
+ [[ -f /etc/sshd_config ]]
+ SSHD_CONFIG=/etc/sshd_config
+ [[ ! -w /etc/sshd_config ]]
+ install_authy ./authy-ssh /Users/doug/.authy-ssh
+ source=./authy-ssh
+ dest=/Users/doug/.authy-ssh/authy-ssh
+ [[ ! -n /Users/doug/.authy-ssh ]]
+ config_file=/Users/doug/.authy-ssh/authy-ssh.conf
++ dirname /Users/doug/.authy-ssh/authy-ssh
+ [[ ! -r /Users/doug/.authy-ssh ]]
+ red '/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo'
+ echo -e '/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo'
/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo
+ return 1