This file contains hidden or 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/env bash | |
# | |
# pasScp.sh is a sftp command line bash script to transfer localfiles to remote host using sshpass command. | |
# | |
function usage { | |
echo "usage: " | |
echo "sftp --user <username> --host <remotehost> -i <identifier-passwordfile> -f|--file <localfile> --path <remote_location> --help --verbose" | |
echo " --user|-u user name to use to login to sftp" |