Shell - Transfer files via SSH

December 2016

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!

Related :

This document entitled « Shell - Transfer files via SSH » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.