Solved

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

Posted on 2009-04-03
9
1,865 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:dmehran
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 24062651
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
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 24062661
What version of ssh/scp are you using on the XP box?

You might find a GUI much easier to use, in which case WinSCP is a good choice.

http://winscp.com
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 24062820
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
0
 
LVL 48

Expert Comment

by:Tintin
ID: 24062880
ahoffmann, are you sure?

Windows command shell understands forward slashes just fine.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:dmehran
ID: 24062887
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
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24062934
if you are interested in a command line tool then consider putty / pscp :

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
0
 

Author Closing Comment

by:dmehran
ID: 31566358
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
0
 

Author Comment

by:dmehran
ID: 24063235
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
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 24067163
> Windows command shell understands forward slashes just fine.
i.g. not, but scp may do ;-)
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
what is this linux system is? 16 117
SIP Trunk provider 20 116
ACL in Solaris 10 & AIX V6.1 to circumvent application required  grp:rwx 9 108
Iptables and mirroring ports 4 77
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now