Skip to content

Instantly share code, notes, and snippets.

@stefanocudini
Created May 11, 2023 22:22
Show Gist options
  • Save stefanocudini/97136631f8e2c861fe6fd833ed38f407 to your computer and use it in GitHub Desktop.
Save stefanocudini/97136631f8e2c861fe6fd833ed38f407 to your computer and use it in GitHub Desktop.
trasnfer pipe via ssh
#TODO test
outfile=$(basename $1)
dd if=$1 | ssh remoteuser@ip.addresss.of.remote.machine 'dd of=${outfile}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment