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.

link|improve this question
Are the remote machines Windows or Linux? – Brian Oct 29 '10 at 17:14
feedback

2 Answers

up vote 0 down vote accepted

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.

link|improve this answer
Not necessarily true: en.wikipedia.org/wiki/File_eXchange_Protocol#FXP_over_SSL – Arjan Oct 29 '10 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. – Gilles Oct 30 '10 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. – Traveling Tech Guy Oct 30 '10 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 '10 at 6:08
@Arjan that FXP is an interesting thing – barlop Apr 30 '11 at 9:14
show 1 more comment
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.