LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2005, 11:32 PM   #1
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Rep: Reputation: 0
SCP: Copy file from remote linux server onto a windows machine?


I have used the scp to copy files from a remote linux box in my home to a mac at my job with no problem. I would like to do the same thing with a PC. I want to copy files from a remote linux box in my home onto my work PC running win xp. I am running a shell (bash)from the windows machine and I log into the linux machine. I want to copy the files from linux machine to windows pc and vice versa. What is the exact command to do such a thing?


Help me out please!


Red Hat btw, latest version I beleive
 
Old 04-22-2005, 11:41 PM   #2
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
ps, if your wondering why... I want to creat a script that will be kept in a file on my linux box that will automatically compare files on both the win and linux machine, and then pull the most recently updated ones from the win machine to the linux, and vise vera.
 
Old 04-25-2005, 09:46 AM   #3
viperlugr
LQ Newbie
 
Registered: Apr 2005
Location: uk
Distribution: DEBIAN
Posts: 3

Rep: Reputation: 0
you can use winscp. It use the sftp which is part of ssh. So if your linux machine run ssh then its easy to have access to your files. Check this link http://winscp.net/eng/index.php
 
Old 04-25-2005, 03:53 PM   #4
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
Use ssh or sftp (or just ftp)...
 
Old 04-27-2005, 12:33 PM   #5
viperlugr
LQ Newbie
 
Registered: Apr 2005
Location: uk
Distribution: DEBIAN
Posts: 3

Rep: Reputation: 0
just start the ssh then download this program to your windows machine and connect to the linux machine.
 
Old 05-02-2005, 03:27 PM   #6
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
I am slow... lol. I dont get it.
WinSCP or Sftp are they commands/programs already in the ssh shell or linux system? When I man winscp I get nothing. when I man sftp I get a page but dont understand how to use it.

I just want to enter in some shell commands to download files from linux server (when logged into server remotely) to windows system (which will be local).
 
Old 05-02-2005, 03:41 PM   #7
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
SSH, SCP, and SFTP are all programs that should already be installed on your box. Just type their name in the terminal to use either one of them.

Code:
scp foo.bar user@usraddress:/home/usr
Or just sftp to the users box.

Code:
sftp user@address
Code:
man sftp  man scp man ssh
 
Old 05-02-2005, 04:21 PM   #8
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
Okay, this is what I am doing...
I am on a windows xp machine. I use putty to log into a linux machine. I then want to copy files from that linux machine to the windows machine. Can you please give me a step by sep guide on how to do this?
 
Old 05-25-2005, 07:10 PM   #9
pjbii
Member
 
Registered: Mar 2005
Distribution: FreeBSD, Slack, Fedora3
Posts: 35

Rep: Reputation: 15
go to your winders box and open a command prompt (start -> run -> "cmd" enter for XP) cd to where pscp.exe is installed (most likely c:\program files\PuTTy)

# pscp -l <user_name> c:\location\of\file linuxServername:/home/user

example:

# pscp -l user1 c:\ftp\picture.jpg slacker1:/home/user1/pics

(where # is the prompt, -l is used to specify username, slacker1 is the linux box, user1 is your linux user name)

HTH

pjbii
 
Old 07-10-2008, 12:56 AM   #10
vovaNux
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
This article could help you to copy your files: http://www.lampdocs.com/blog/2008/07...ght-commander/
 
Old 07-11-2008, 01:17 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Copy from Linux to MS (current dir), using putty on MS:

pscp user@box:/some/path/somefile.ext .

to another MS dir

pscp user@box:/some/path/somefile.ext C:\somems\mspath\msfname.ext
 
Old 08-18-2008, 11:25 PM   #12
vovaNux
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Example given doesn't work on CentOS. I get -bash: pscp: command not found
when trying to run the command. I think it's easiear to use Winscp to copy files from a linux to a windows machine and back
 
Old 08-18-2008, 11:35 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
This is a 3 year old thread guys.

pscp is a windows program from putty
 
Old 08-13-2010, 04:25 AM   #14
pranky
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 0
Remotly file transfer

Hey check this.

http://pankajdangi.com/2010/08/how-t...-remotely-scp/
 
Old 01-05-2012, 04:42 AM   #15
kuldeep
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Rep: Reputation: Disabled
Window machine to linux machine

Hi,

I am able to copy the file from window machine to linux machine via winscp but i wanted to know is there any command by which i can copy the file from linux machine to windows machine.
Please help if anyone know about the same.
Thanks in Advance.
Cheers,
Kuldeep
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
scp/ssh tail(multiple file) remote copy tpreitano Linux - General 1 08-22-2005 02:17 PM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 01:43 PM
SCP Copy from Linux to Windows? mhague Linux - Newbie 8 11-03-2004 01:56 PM
scp :copy file from one remote comp to another aniketh Linux - Networking 4 06-16-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration