1

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.

0

5 Answers 5

7

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 [email protected]:/etc/hosts ./hosts

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

13

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

0
6

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.

6
  • 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, 2010 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, 2010 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, 2010 at 2:43
  • Good point. Over the Internet, encrypted protocols are the best idea.
    – Warner
    Aug 30, 2010 at 2:53
  • sorry, i should have stated clearer in the question. The question has been updated.
    – StarCub
    Aug 30, 2010 at 2:55
1

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

http://filezilla-project.org/

0

Using notepad++ with NppFTP plugin is another way. Its faster than pscp.exe

For download :

enter image description here

For Upload :

enter image description here

You must log in to answer this question.

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