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 have to copy file from one folder on linux server to windows server(2008) through ssh. The servers do not lie on same network. I have gone through many examples that use scp command, but didn't get any to copy from linux server to windows server. How can I do so? I cannot use Samba due to security issues.

share|improve this question

migrated from stackoverflow.com May 28 '12 at 16:18

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

    
what errors did you get with scp? –  Jure1873 May 28 '12 at 16:39
    
Does the Windows box have an SSH server installed? Windows does not support SSH out of the box. Please be clear, are you trying to initiate the copy from the Linux side or the Windows side? –  Zoredache May 28 '12 at 20:45
    
You've told us nothing about the examples you've tried nor the resources available except that you can't use Samba, without explaining why this creates a security issue. Nor have you provided any details of of why the things you have tried did not work. I suppose if you get enough answers, eventually someone might get lucky, but if you explained the problem more fully the you've got a much better chance of getting a solution. –  symcbean May 28 '12 at 21:43

2 Answers 2

Download pscp from here. Then from the windows machine execute:

C:\TEMP> pscp user@linux.machine:/path/to/file .

This copies file to C:\TEMP\file and assumes that you have put pscp.exe in a directory listed in your PATH environment variable.

share|improve this answer

if you have ssh access from windows to linux, you could use winscp. It uses ssh to do the connection and it has graphical interface. So, all you need is ssh connection from win to linux.

share|improve this answer

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.