Data Copy Over SSH 2
dd if=/dev/sda | ssh user@host "dd of=/directory/imagefile"
or with compression:
dd if=/dev/sda | bzip2 |ssh user@host "dd of=/directory/imagefile"
or with compression on the receiving side:
dd if=/dev/sda | ssh user@host "bzip2 | dd of=/directory/imagefile"
This example can be expanded easily as:
cat filename |ssh user@host "dd of=/directory/filename"
also works quite fine.