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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-22-2005, 11:32 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17
Rep:
|
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
|
|
|
04-22-2005, 11:41 PM
|
#2
|
LQ Newbie
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
04-25-2005, 09:46 AM
|
#3
|
LQ Newbie
Registered: Apr 2005
Location: uk
Distribution: DEBIAN
Posts: 3
Rep:
|
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
|
|
|
04-25-2005, 03:53 PM
|
#4
|
Member
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110
Rep:
|
Use ssh or sftp (or just ftp)...
|
|
|
04-27-2005, 12:33 PM
|
#5
|
LQ Newbie
Registered: Apr 2005
Location: uk
Distribution: DEBIAN
Posts: 3
Rep:
|
just start the ssh then download this program to your windows machine and connect to the linux machine.
|
|
|
05-02-2005, 03:27 PM
|
#6
|
LQ Newbie
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17
Original Poster
Rep:
|
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).
|
|
|
05-02-2005, 03:41 PM
|
#7
|
Member
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849
Rep:
|
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:
man sftp man scp man ssh
|
|
|
05-02-2005, 04:21 PM
|
#8
|
LQ Newbie
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17
Original Poster
Rep:
|
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?
|
|
|
05-25-2005, 07:10 PM
|
#9
|
Member
Registered: Mar 2005
Distribution: FreeBSD, Slack, Fedora3
Posts: 35
Rep:
|
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
|
|
|
07-10-2008, 12:56 AM
|
#10
|
LQ Newbie
Registered: Jul 2008
Posts: 6
Rep:
|
|
|
|
08-18-2008, 11:25 PM
|
#12
|
LQ Newbie
Registered: Jul 2008
Posts: 6
Rep:
|
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
|
|
|
08-18-2008, 11:35 PM
|
#13
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
This is a 3 year old thread guys.
pscp is a windows program from putty
|
|
|
08-13-2010, 04:25 AM
|
#14
|
LQ Newbie
Registered: Apr 2010
Posts: 7
Rep:
|
Remotly file transfer
|
|
|
01-05-2012, 04:42 AM
|
#15
|
LQ Newbie
Registered: Jul 2011
Posts: 7
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 10:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|