7

Which tools able me to copy files between two remote servers with SFTP (SSH File Transfer Protocol)?

I have tried WinSCP, but I am only able to copy files between my local machine and one remote server.

2

3 Answers 3

2

To enable file transfer between two remote machines, you'll need to SSH/Telnet/Remote/VNC etc. into one of them and initiate the transfer from there. Any other alternative involving your local machine will necessitate transferring the files to your local first.

7
  • 3
    Not necessarily true: en.wikipedia.org/wiki/File_eXchange_Protocol#FXP_over_SSL
    – Arjan
    Oct 29, 2010 at 17:45
  • @Arjan: While Traveling Tech Guy's answer is literally false (you could use some method other than ssh to access one of them and initiate the transfer), the gist is correct: in order to perform a direct copy, you need to execute a command on one of the machines to get it to connect to the other machine. Oct 30, 2010 at 0:28
  • @Arjan, I wouldn't say it's literally false. To pass files between 2 servers without them passing through a third, the transfer process needs to start on one of those servers. Yes, you could use other methodes to remote to that machine (updated my answer - thanks), but the basic facts are the same. Oct 30, 2010 at 4:53
  • @Gilles and TTG, maybe I am missing the point you're trying to make, but FXP does not require one to use SSH, Telnet, whatever. If the servers support FXP (not very likely) then any FXP-compatible FTP client is all one needs. (Also, the question asker is just looking for a SFTP client that supports connecting to two remote servers. It seems to me he doesn't care if that client uses the local machine as an intermediate storage, he just does not want to manually transfer the files to the local machine first.)
    – Arjan
    Oct 30, 2010 at 6:08
  • @Arjan that FXP is an interesting thing
    – barlop
    Apr 30, 2011 at 9:14
1

Netcat is another tool that can do this, but netcat would need to be present on both remote servers (not likely if one of them is Windows or Solaris) and you would need to do this via ssh tunnel to be secure, defeating the point since you could just use ssh to accomplish what you want. If security is not an issue, and netcat is available on both machines

1

WinSCP can copy the files between two servers via a local temporary copy. Of course, that would be slow, if your line to the server is slow. It just saves you some manual action.

For more details refer to WinSCP FAQ Can I transfer files between two remote servers with WinSCP?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .