Shell - Transfer files via SSH

March 2017

Shell - Transfer files via SSH


Introduction


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

Softwares

Linux/Unix

  • 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:

Disclaimer


Please note that, installing an SSH server on Windows 95/98/ME may lead to several security issues!

Related


Published by netty5.
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 (ccm.net).