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.

I'm on ssh accessing my user account at school. I'm trying to download a particular file from my linux account to my current windows file system that Im on right now. Can i use scp? If yes Id really appreciate if you could give an example of how to download a file from a remote server to windows

share|improve this question

migrated from stackoverflow.com Apr 6 '11 at 4:02

This question came from our site for professional and enthusiast programmers.

add comment

5 Answers

You won't find scp or ssh natively on Windows. But you can always download WinSCP and Putty, respectively if you find yourself in need of some *nix goodness on Windows.

share|improve this answer
add comment

Assuming you have scp installed on your Windows machine, you can use:

scp username@remotehost:~/path/to/remote/file ~/path/to/local/file

If you don't have scp installed, you can use Cygwin to install SCP for Windows.

share|improve this answer
add comment

WinSCP has windows binding for the scp protocol. I haven't used it in a long time, but I recall it being easy to use.

http://winscp.net/eng/index.php

share|improve this answer
add comment

Install cygwin. It has an ssh and scp client. You'll have to initiate the copy from windows, but it'll work.

Alternatively, it might be possible to install an ssh daemon with cygwin, but I've never explored that.

share|improve this answer
add comment

Install PSCP on your Windows machine by placing it inside your Windows folder (where notepad.exe is located), open the Windows Command line (cmd) and enter:

pscp urlToYourRemoteLinuxMachine:pathToYourFile pathToLocalWindowsMachineFile
share|improve this answer
add comment

Your Answer

 
discard

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