Differences

This shows you the differences between the selected revisions of the page.

2011-07-30 2012-07-09
sftp scp ftp (martin) custom_commands#fxp (martin)
Line 5: Line 5:
===== To transfer files directly from one server to another ===== ===== To transfer files directly from one server to another =====
-This is not possible with WinSCP for reasons that differ with protocol:+This feature is not build-in to WinSCP for reasons listed below. Yes there are ways to utilize some advanced features of WinSCP to achieve the task, see further.
  * [[SFTP]] protocol does not allow this.   * [[SFTP]] protocol does not allow this.
  * With [[SCP]] protocol it may be theoretically possible. However it has many drawbacks. It would require not only major changes in WinSCP, but also many extensive configuration changes on both servers to allow authenticate on the second server from the first one (note that it would not be possible to use password authentication). So practically it would not have any advantage for most users.   * With [[SCP]] protocol it may be theoretically possible. However it has many drawbacks. It would require not only major changes in WinSCP, but also many extensive configuration changes on both servers to allow authenticate on the second server from the first one (note that it would not be possible to use password authentication). So practically it would not have any advantage for most users.
  * For [[FTP]] protocol has an FXP extension that allows this, but it is not supported by WinSCP. [[bug>309]]   * For [[FTP]] protocol has an FXP extension that allows this, but it is not supported by WinSCP. [[bug>309]]
-With SFTP and SCP protocols, you can use suitable [[remote_command|remote command]] to transfer files. E.g.:+==== Pushing files with custom command ==== 
 +With SFTP and SCP protocols, you can push the selected remote files to another server using [[custom_commands#fxp|scp custom command]]. 
 + 
 +==== Pulling files with remote command ==== 
 +With SFTP and SCP protocols, you can use suitable [[remote_command|remote command]] to download files to the remote server from another server. E.g.:
<code> <code>
wget ftp://username:password@otherhost:/path/file ./ wget ftp://username:password@otherhost:/path/file ./
</code> </code>

Last modified: by martin