?
Solved

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

Posted on 2004-04-21
6
Medium Priority
?
961 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

#Citrix #POC #XenDesktop #vCenter #VMware #ESX
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

743 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