Skip to content

Instantly share code, notes, and snippets.

@lfborjas
Created March 27, 2012 00:06
Show Gist options
  • Save lfborjas/2210874 to your computer and use it in GitHub Desktop.
Save lfborjas/2210874 to your computer and use it in GitHub Desktop.
export SSHPASS=your-password-here
sshpass -e sftp -oBatchMode=no -b - sftp-user@remote-host << !
cd incoming
put $1
bye
!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment