Shell - Transfer files via SSH

Shell - Transfer files via SSH


SSH allows the transfer of files from and to remote machines.
  • This command can be used to transfer files:

SSH server "cat remote_file" > local_file
  • This command is useful for transferring large files over a fairly limited bandwidth:

ssh server "gzip -c remote_file" > local_file.gz
  • Here, the server compresses the file, the command will write the compressed file on the client machine.
  • It can also help to lower bandwidth usage when downloading compressed files:

ssh server "gzip -c remote_file " |gunzip > local_file



  • Most Unix/Linux versions are supplied an SSH client SSH server.

Under Windows

  • Putty
  • Free graphical scp/sftp client :
  • WinSCP
  • FileZilla

For Windows 2000/XP:
For Windows 95/98/ME/2000/XP:


Please note that, installing an SSH server on Windows 95/98/ME may lead to several security issues!
Published by netty5. Latest update on May 26, 2013 at 12:18 PM by jak58.
This document, titled "Shell - Transfer files via SSH," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Shell - Create a file of a specific size
Shell - Viewing a binary file: Terminal illegible