pscp copy file remotely from Windows to Linux

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

2 Answers

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

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

4

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like