Skip to content

Instantly share code, notes, and snippets.

@ftkro
Created December 26, 2013 08:36
Show Gist options
  • Save ftkro/8131308 to your computer and use it in GitHub Desktop.
Save ftkro/8131308 to your computer and use it in GitHub Desktop.
Authy対応版SFTP。 sftp.shをsftpにリネームして/usr/local/sbinとかに入れておいてalias張っとけ。 alias sftp='/usr/local/sbin/sftp'
#!/bin/bash
#This is AN Correspondence Authy SSH Command.
if [ "$1" = vps ] ; then
#Enable Authy Token.
echo -n "Authy Token (not support SMS Token): "
read authytoken
AUTHY_TOKEN="$authytoken" sftp vps
else
#Disable Authy Token.
sftp $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment