LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy from windows to linux (http://www.linuxquestions.org/questions/linux-newbie-8/copy-from-windows-to-linux-942728/)

acianci 05-01-2012 09:52 AM

copy from windows to linux
 
hello - I'm a total newbie to linux and, as such, come face to face with obstacles daily. My first question on this forum is: im trying to scp a file from windows to linux. how do I do this? Thanks in advance!

suicidaleggroll 05-01-2012 09:57 AM

winscp or cygwin

I use cygwin since I prefer a linux CLI rather than a GUI.

druuna 05-01-2012 09:58 AM

Hi,

winSCP can do that.

Hope this helps.

Edit: too slooooow :)

acianci 05-01-2012 10:07 AM

thanks all - i just tried both and no luck. what I'm doing is: scp user@fromhost:filename user@tohost:filename and replacing the scp with cygwin winscp - is this command correct?

druuna 05-01-2012 10:12 AM

Hi,

Although you can use the CLI, winSCP is basically a GUI. Documentation can be found here: winSCP Documentation.

Hope this helps.

suicidaleggroll 05-01-2012 10:19 AM

Quote:

Originally Posted by acianci (Post 4667642)
thanks all - i just tried both and no luck. what I'm doing is: scp user@fromhost:filename user@tohost:filename and replacing the scp with cygwin winscp - is this command correct?


Winscp is a Windows GUI, there is no command to type in, you just fill in the boxes for user and host and then browse the server like an FTP client.
Cygwin is a Linux-style CLI that runs in Windows. From the Cygwin terminal you can run scp like normal.

Your command is also a bit off as well, either your fromhost or your tohost has to be local, you can't use SCP on machine 1 to transfer a file between machine 2 and machine 3. The command would be "scp filename user@host:filename" if you want to transfer from the local machine to a remote machine, or "scp user@host:filename filename" if you want to transfer from a remote machine to the local machine.


All times are GMT -5. The time now is 08:50 PM.