Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to transfer a file (~15 Mb) from a remote Linux machine to my local Windows box over the Internet and I was just wondering what would be the best way to do it? The Linux machine is a server sitting behind firewalls so that solutions need to open other ports may not be suitable. I'm currently connected to the Linux machine via SSH(Putty) and I prefer to use the command line.

Thanks in advance.

share|improve this question
up vote 4 down vote accepted

If you prefer the command line, try pscp.exe on the local machine, from the lovely Putty people.

pscp.exe <user>@<remote ip>:<remote file> <local file>
e.g. pscp.exe smith@ ./hosts

share|improve this answer

I'd give scp a try. Or WinSCP if you want a GUI.

share|improve this answer

Two ways:

  1. python -m SimpleHTTPServer

    This will start a web server on port 8000 (if you need an alternate port, specify it as next argument) which will expose all files in the current directory and you could download them directly with the web browser or with any http downloader.

  2. Use netcat! Just google for "netcat file transfer", you'll find a lot of examples.

share|improve this answer
Sure, either of these would work, but why require another port/configuration/etc when ssh is obviously already running, especially when considering that either of the above options sends the file across the network unencrypted. – EEAA Aug 30 '10 at 2:31
It's a good recommendation, as he's asking for the quickest way. I pipe tar through netcat all the time on a LAN when I want to reduce overhead for a large transfer. – Warner Aug 30 '10 at 2:37
@Warner, yes, that's correct. I guess I was reading too much into the question..."remote linux system" usually means across the WAN somehow, which in most cases, you'd want to use some encrypted method. – EEAA Aug 30 '10 at 2:43
Good point. Over the Internet, encrypted protocols are the best idea. – Warner Aug 30 '10 at 2:53
sorry, i should have stated clearer in the question. The question has been updated. – StarCub Aug 30 '10 at 2:55

my preference goes to filezilla, for it supports SSH protocol (as well as FTP and such)

share|improve this answer

Your Answer


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.