Monthly Archives: September 2008


Data Copy Over SSH 2

Need to transer a whole disk image to another computer over SSH? Just: 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.