Skip to content

Instantly share code, notes, and snippets.

View MContagious's full-sized avatar

Kishore Relangi MContagious

View GitHub Profile
@MContagious
MContagious / pasScp.sh
Last active July 13, 2022 18:58
sftp command line
#/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"