Link to home
Start Free TrialLog in
Avatar of deepakyadav
deepakyadav

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bloemkool1980
bloemkool1980

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

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.
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.....