I'm looking for a shell/bash script that can be used to transfer a file from my local to a remote serve using sftp protocol.
I have the one for ftp but can't figure out for sftp. Any help here would be greatly appreciated.
You could use lftp
:
lftp -u USER,PASS -e "put LOCAL_FILE;quit" sftp://SERVER_ADDRESS