Link to home
Start Free TrialLog in
Avatar of dmehran
dmehranFlag for United States of America

asked on

how to use SSH and scp command to copy files from local windows xp machine to a linux server

Hi,

I am new to linux commands and I need to be able to transfer files between my local windows xp machine to an account on a linux server. The server is not set up to do FTP, so SSH connection and secure copy scp command is the only mean of transferring files to the server. I can access the server using SSH, but scp is not working. Is it even possible to use scp to transfer files between windows xp machine to a linux server? if yes, then how do you define the local path in the scp command line? This is the command I am using

scp /local/path/to/file/on/my/windowsXP/machine  user@serverIP:/path/to/file

I then get prompted to enter the user password on the server, and once I enter the password I get this error message:

"No such file or directory"


I need the answer quickly

Thanks
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

which ssh s/w are using on xp?

did you try to use \ rather / in path name on xp? are you trying to copy a file or a directory? if directory then use -r option
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if you're using scp in a cmd.exe you have to use \ for the path on local side, and / for path on the remote side
Avatar of Tintin
Tintin

ahoffmann, are you sure?

Windows command shell understands forward slashes just fine.
Avatar of dmehran

ASKER

Tintin,

I did a bit of a research on this while waiting for an answer. I must have been wrong in that I was thinking  I could use SSH to transfer files from my local windows xp machine to a remote Linux server. I use SSH to connect to a Linux server, and once I connect that SSH command line is running on the server. Then with that in mind how could a scp command get access to my local windows xp machine? So I don't think what I was doing was the right way. Should have known better! I will try your proposed solution of using WinSCP since I just did come across it on Google a couple of times as well; still don't know anything about it, so I'll find out. The other thing I guess I could do is to install cygwin since that creates a shell on my windows machine and from what I understood it creates a Linux shell command on my windows machine. So using cygwin I'll be able to copy files from my machine to a remote Linux or even Unix server.

Will let you guys know.

Thanks
if you are interested in a command line tool then consider putty / pscp :

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Avatar of dmehran

ASKER

WinSCP works like a charm, still can not believe I was foolishly trying to use SSH to grab files from my windows xp local machine! Just curious to know how many people have tried that.

Thanks
Avatar of dmehran

ASKER

WinSCP works like a charm, still can not believe I was foolishly trying to use SSH to grab files from my windows xp local machine! Just curious to know how many people have tried that!

Thanks
> Windows command shell understands forward slashes just fine.
i.g. not, but scp may do ;-)