Solved

how to copy files from one linux mechine to other linux machine

Posted on 2004-04-21
6
958 Views
Last Modified: 2013-12-06
i have two linux machine both have different distribution of linux on it
one had red hat and other have debian verasion
i ahve set up network between this
i ping  on  debian machine it is  finding  other machine
and then i gave command ftp the ip address of the other machine
it  said it is connect with that
after that i disconnected then i gave sane ftp comomand on the other machiune but it is not connected with the first one
so how i can connedt it
and how i can copy files from machine to other
help me
0
Comment
Question by:deepakyadav
6 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 125 total points
ID: 10876869
Hi deepakyadav,

> gave sane ftp comomand on the other machiune but it is not connected with the first one
The first one is not running the ftp server!! look for the configuration of the ftp server under /etc/xinet.d directory (most likely it will be vsftpd or wu-ftpd)

for copying the files you do not have to run ftp server on both the machines ... running the server on any one of them (your current configuration) is sufficient

after establishing an ftp session use get and mget commands to retrieve the files and put and mput commands to upload the files

Sunnycoder
0
 
LVL 6

Expert Comment

by:bloemkool1980
ID: 10877448
you could use scp to beef up your security instead of running an ftp server
scp mylocalfile username@host:/dirname/file

0
 
LVL 1

Expert Comment

by:akubi
ID: 10886768
Hi deepakyadav,

Are you sure the debian box has an ftp server set up? Try doing "ftp localhost" from the console on the debian machine to see if there actually is any server to connect to.
0
 
LVL 1

Expert Comment

by:Sachin_Yash
ID: 10887307
Hi Deepak !!!

                I think I have better idea (ya ya.. something lengthy process but u will definatly get the result out of it !!! )

                instead if FTP use NFS service..
 
                First start the nfs service on both m/c. then from your first m/c (say 10.2.10.1) to second one (say 10.2.10.2)edit /etc/exports....  type the file path (example u want to copy /use/local/mysql folder ...) then u will write in export file as :-

           /usr/local/mysql    10.2.10.2

//save & exit...

          in your second m/c start nfs & portmap service & just give command as  
          #showmount -e 10.2.10.1
      it will give you that /usr/local/mysql is shared...for mounting

          #mount -t nfs 10.2.10.1:/usr/local/mysql  /dest.folder

          As u mount it on dest.folder copy it whatever u want...

           Try it.....
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question