Created
December 26, 2013 08:36
-
-
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'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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