Solved

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

Posted on 2004-04-21
6
953 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now