Transfer files via ssh with rsync

Prefered method if ssh is available.

 bash | 
 
 copy code |
?

1
Another way, if you have SSH:
2
3
4
5
rsync -aE -e ssh directory user@hostB:target_dir
6
7
8
9
or from hostB