Originally Posted by sachin.davra
suppose i transfer 3GB data then how much compression will be done? Will it take less time to transfer 3GB file?
openssh uses gzip for compression, so you can find out exactly how much the size is reduced just by gzipping the file.
Note that the compression ratio varies wildly with the type of data. For example if the files a just text, then the compression ratio can be excellent. However if for example they are image, video or audio files that are already in a compressed format you are not likely to gain much size reduction. In this latter case the over all transfer time is likely to increase because of the overhead of the time it takes to compress (and to a less extent decompress) the data.