Shell - Transfer files via SSH

Ask a question
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!
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team