Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

4 Answers

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@122.100.150.161:/etc/hosts ./hosts

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

share|improve this answer
add comment

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

share|improve this answer
add comment

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
show 1 more comment

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

http://filezilla-project.org/

share|improve this answer
add comment

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.