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 would like copy a backup file from image vmware linux to windows but i don't know how to process it ?

i tried :

scp /source/backup.tar.gz admin@x.x.x.x:/c:\ProgrammefilesC:\Documentsand Settings\Admin\MyDocuments

but error and i know that it's not like that, so if you have solutions ?

please,

share|improve this question

migrated from stackoverflow.com Aug 18 '10 at 19:51

This question came from our site for professional and enthusiast programmers.

2  
You need a SSH server on the Windows box for this to work. The most easy way would probably be to do the reverse: Install (start/unblock port) the SSH server on the Linux machine and transfer the file with a Windows client like Putty. –  Eike Aug 18 '10 at 17:04
    
This would be a great question for superuser. –  karlphillip Aug 18 '10 at 17:08
add comment

3 Answers 3

Why not just add MyDocuments as a shared folder with your VM? That would simplify things a lot.

Regardless, you need something like WinSCP on your Windows box or else there's nothing to really ssh to.

share|improve this answer
    
Yes think you, if i want that it be include in my script who will be execute automatically ??? Because i have my script ".sh" who make a backup and compress this backup and at the end of my script i would to copy this compress file to a windows folder. I think with the scp command. –  user46745 Aug 19 '10 at 11:22
add comment

If you can SSH into your linux VM, you have another option.

I use Cygwin on Windows.

You can use this SSH command to copy a file from the VM to your Windows box.

ssh HOST "cat < REMOTEFILE" > LOCALFILE

It also works on binaries.

share|improve this answer
    
Curious, why would you do it this way instead of using scp? If you can install ssh in cygwin, you could also install scp. –  ChrisInEdmonton Oct 18 '13 at 14:31
    
Using this way is more interesting and fun to me haha. It primarily stemmed from using nc and transferring files between two servers. And also using bash socket programming to transfer files as well. Then, I wanted to do it more securely. Rather than hashing and salting the stream before sending it over nc or bash, SSH just seemed easier, since every linux server has SSH pretty much by default. So, I use SSH over SCP because it's more fun to me. –  naisanza Oct 19 '13 at 17:02
add comment

Yes think you, if i want that it be include in my script who will be execute automatically ???

Because i have my script ".sh" who make a backup and compress this backup and at the end of my script i would to copy this compress file to a windows folder.

I think with the scp command.

share|improve this answer
    
scp needs to talk to an ssh server on the remote end. –  Douglas Leeder Aug 19 '10 at 10:28
add comment

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.