Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
Are the remote machines Windows or Linux? –  Brian Oct 29 '10 at 17:14
    
Related: FTP client that supports 2 concurrent FTP sessions. –  Arjan Oct 30 '10 at 7:00

3 Answers 3

up vote 1 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.

share|improve this answer
1  
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

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

share|improve this answer

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

For more details refer to WinSCP FAQ on the topic (Can I transfer files between two remote servers with WinSCP?):
http://winscp.net/eng/docs/faq_fxp

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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