通过ssh传输文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过ssh传输文件相关的知识,希望对你有一定的参考价值。

Command to transfer files between servers using the command line.
  1. Another way, if you have SSH:
  2.  
  3. rsync -aE -e ssh directory user@hostB:target_dir
  4.  
  5. or from hostB
  6.  
  7. rsync -aE -e ssh user@hostA:directory target_dir
  8.  
  9. You can also use the z (--compress) switch to rsync if network throughput is an issue.

以上是关于通过ssh传输文件的主要内容,如果未能解决你的问题,请参考以下文章