9

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?

2
  • What have you tried? Running pscp /? will tell you how to run it. Or is pscp not found? Commented Mar 11, 2011 at 13:53
  • @Mikel i've updated question Commented Mar 11, 2011 at 13:58

2 Answers 2

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

Substitute username and hostname for those valid for the Linux system.

4
  • i've updated question, tried as you said and got connection timed out Commented Mar 11, 2011 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. Commented Mar 11, 2011 at 14:02
  • 1
    remote PC port is 2222 Commented Mar 11, 2011 at 14:04
  • 1
    Then use pscp -P 2222 c:\1.txt username@hostname:/tmp Commented Mar 11, 2011 at 14:05
0

Don't specify the drive letter. The colon character in the drive letter makes pscp think you mean host:path, on a host named C. You can change to that drive letter, then not specify the drive letter on your windows path:

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.