How i can copy file from server(OS:ubuntu 10.04) to local HDD in my PC(OS:windows 7) ??

note :- if you can help me by give me the command which copy file from server to my pc (becouse i enter to server remotly)

5 Answers 5


One out of many ways: Install SSH on the Ubuntu machine and use WinSCP on Windows.


If you insist on the command line and have putty installed, use pscp.exe like this:

pscp [email protected]:/remotepath/remotefile.doc localfilename.doc

(See the doc)

  • if you can help me by give me the command which copy file from server to my pc (becouse i enter to server remotly)
    – Mohammad AL-Rawabdeh
    Sep 2, 2010 at 11:36
  • You most likely connect to the server with SSH (like putty), right? WinSCP is just another way to access the server via the SSH protocol, but here you don't enter commands but see the remote filesystem of the server on your local machine and can copy files this way.
    – Sven
    Sep 2, 2010 at 11:48
  • pleas i want to ask you this command can transfer file from serve to HDD in my PC (dor example put it in D:/)
    – Mohammad AL-Rawabdeh
    Sep 2, 2010 at 11:50
  • please the case as the follwing i make a backup to x folder and i want to copy it from server to my PC
    – Mohammad AL-Rawabdeh
    Sep 2, 2010 at 11:52
  • Read the documentation I linked. I am not going to repeat it here. Also, you will need to better explain what you want to do in your question. For making backups of more than a few files, I would have recommended rsync. Search here and on superuser for rsync-related questions. I bet you will find detailed instructions on how to use it. And last: Your questions is a better fit on superuser.com than here.
    – Sven
    Sep 2, 2010 at 11:58

From what it sounds like, you're just doing a one off copy, am I right? Here's what you'll probably want to do.

  1. (On Ubuntu) Read about how to setup an SSh server in the Ubuntu OpenSSH Server wiki page
  2. (On Windows) Use WinSCP to connect to your Ubuntu machine (enter the hostname, your username, and your password)
  3. (On Windows) Using the interface, navigate to the file and transfer it.

You can make the folder that the file is in shared over CIFS/SMB. However you have to install Samba, and doing that properly (and securely) can take a little effort.

You could also share it over http with WebDav. This too would require some effort to configure properly, but you would now be running a Web Server on your network. This gives you great flexibility, but can come with it's own set of problems.

However, I do recommend running sshd on the server and using PuTTY/pscp (or optionally WinSCP.)


the answer is download the FileZilla program in your PC and login to the server ... then you can copy file from/to your computer

  • Only relevant if he has sshd running--which is not the default on Ubuntu.
    – Redmumba
    Sep 2, 2010 at 12:40

by far the easiest way is to do a python -m SimpleHTTPServer 8888 on the linux and go to url http://ip.address.of.the.linux.pc:8888 with a web browser on the Windows

No need to install anything extra on either host.

You must log in to answer this question.

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