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 need to copy file from my Windows XP system to remote Linux system.

Win location : c:\1.txt
LInux location:/tmp

What should be the command?

EDITED: pscp is recognized and OK on my PC.I CAN connect with Putty to this remote Linux PC
remote Linux name is s1,hostname is s1host

I tried transfer file with following command:

pscp C:\1.txt s1@s1host:/tmp

Got:Fatal: Network error: Connection timed out

It's not clear,is command isn't ok?

share|improve this question
    
What have you tried? Running pscp /? will tell you how to run it. Or is pscp not found? –  Mikel Mar 11 '11 at 13:53
    
@Mikel i've updated question –  sergionni Mar 11 '11 at 13:58

1 Answer 1

up vote 2 down vote accepted

pscp c:\1.txt username@hostname:/tmp

Should do it - substitute username and hostname for those valid for the Linux system.

share|improve this answer
    
i've updated question, tried as you said and got connection timed out –  sergionni Mar 11 '11 at 13:59
    
That's because your windows PC can't connect to your Linux host for some reason - is ssh at the remote end running on a non standard port? If so you'll also need to use the -P portnumber specificatoon. –  cbz Mar 11 '11 at 14:02
    
remote PC port is 2222 –  sergionni Mar 11 '11 at 14:04
    
Then use pscp -P 2222 c:\1.txt username@hostname:/tmp –  cbz Mar 11 '11 at 14:05
    
thanks a lot, you've really helped me –  sergionni Mar 11 '11 at 14:08

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.