LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-06-2010, 07:48 AM   #1
Lakshmi Yallampalli
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
How to transfer files from a linux machine to a windows machine which are not in the same network


I had run one script in unix machine and want to copy the results to a windows machine

Both the machines are on different networks

In linux machine trying to do the ftp to the windows machine its giving connection refused. How to chech whether ftp is running on that linux machine or not?

Also tried scp and ssh , both are failing

Please help ASAP

Regards,
Lakshmi
 
Old 07-07-2010, 02:57 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Trying to run FTP client on Linux machine and connect to Windows machine (it seems that you describe that) can only help when FTP server is running on the Windows machine.

I recommend the following:

1) check that SSH daemon is running on the Linux machine. Try running
Code:
ssh 127.0.0.1
on it to check.

2) check that Windows machine can ping the Linux machine. For that you can run
Code:
ping [IP of the Linux machine]
in Windows cmd.exe session.

3) get an SCP client on the Windows machine. A good example would be WinSCP.

4) Instruct SCP client on the Windows machine to connect to Linux machine with your login and password. After that you should be able to browse its FS and copy the needed files.
 
Old 07-07-2010, 03:03 AM   #3
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Rep: Reputation: 28
Question What software/services are running on Windows?

You have to make sure your Windows machine is accepting FTP connections. To do so that machine must be running an FTP server, and your firewall must be configured to allow incoming connections on port 21. You might also have to configure the *client* to allow incoming connections on port 20 (if using *active* FTP).

Therefore, you must be able to configure your firewall by port on the machine with the FTP server. (And maybe also on the client, if using active FTP.

This website explains the difference between active and passive FTP very well:
http://slacksite.com/other/ftp.html

If you have not set up an FTP server on the Windows machine, and/or have not opened the ports on that machine (and maybe the client), then the connection will fail.

I have not set up FTP, personally. I don't know if it might be easier for Linux to be the server...but I am guessing you wanted it the other way around, because you can script your Linux machine to "push" data to Windows. Do I understand that correctly?

If you haven't done the necessary tasks yet, you need to set up your sever and firewall. If you have done that properly, then please post the error(s) here.

Last edited by ShellyCat; 07-07-2010 at 03:03 AM. Reason: Forgot to paste link!
 
Old 07-07-2010, 04:56 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
For this sort of thing, woof is very, very neat, and soooo simple.

I suggest you try it.
 
Old 07-08-2010, 12:15 AM   #5
kapsikum
Member
 
Registered: Mar 2005
Location: INDIA
Posts: 79

Rep: Reputation: 16
Quote:
In linux machine trying to do the ftp to the windows machine its giving connection refused. How to chech whether ftp is running on that linux machine or not?
netstat -ant| grep 21
see if there is something like this in the result 0.0.0.0:21
This means that the port 21 is occupies and most likely it should be taken by ftp only.
also if i am not wrong netstat -le may even show you what bnianries are running on what port.
 
Old 07-09-2010, 02:12 AM   #6
Lakshmi Yallampalli
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Still i am unable to transfer files between windows and linux machine.
From windows machine i can able to ping linux machine IP, but vice versa is not working

Please Help me ASAP

Gow struct due to this

Regards,
Lakshmi
 
Old 07-16-2010, 05:50 AM   #7
Lakshmi Yallampalli
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Still i havent get the solution for my problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to transfer file from linux machine to windows machine? pinga123 Linux - Newbie 8 04-09-2010 10:38 AM
How to transferring files from linux machine to linux machine and windows Dinimani Debian 3 05-12-2008 06:50 AM
How to Transfer files between Linux machine and Window Machine rktech83 Linux - Networking 7 03-14-2006 04:10 AM
I canít transfer files from my Windows machine to my Linux box. kingkongadp64 Suse/Novell 10 11-04-2005 01:16 PM


All times are GMT -5. The time now is 11:27 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration