Results 1 to 6 of 6

Thread: rsync - transfer files across network

  1. #1
    Join Date
    Jul 2010
    Location
    NSW, Australia
    Beans
    131
    Distro
    Xubuntu 13.10 Saucy Salamander

    rsync - transfer files across network

    I have two computers each running Xubuntu. I have full read/write file sharing using Dolphin and Thunar - with Samba.

    I now want to use rsync to sync the files from one directory on the first computer to the second.

    I have tried rsync but had problems. The host name of the first computer is HP and on the other is ASUS. The directory I am copying from is /Common/Documents and the destination is /home/user/Share. Both directories are set to share.

    rsync -auv --progress /Common/Documents ASUS:/Share


    ssh: connect to host ASUS port 22: Connection refused
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.8]
    rsync -auv --progress /Common/Documents ASUS:/home/user/Share


    ssh: connect to host ASUS port 22: Connection refused
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.8]
    I get the same errors when using sudo.

    rsync works OK on each computer without using the network.

    Any help please

    TIA

    Alan
    HP-200-5220a - Pentium Dual Core - 3GHz
    Xubuntu 13.10, Kubuntu 13.10

    Acer 5750Z - Intel Dual Core - 2.1GHz

    Xubuntu 13.10; Kali Linux; Puppy Linux

  2. #2
    Join Date
    Jun 2008
    Location
    Chicago, IL
    Beans
    301
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: rsync - transfer files across network

    Check to see if you can manually acsess eachothers files from either direction? Perhaps add 'force user = yourname' to smb.conf?
    Mint 14 | 64bit | DT ACER VN281G | Intel® Atom™ CPU D425 @ 1.80GHz × 2 | Registered Linux User#458200

  3. #3
    Join Date
    Jul 2010
    Location
    NSW, Australia
    Beans
    131
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: rsync - transfer files across network

    I can access each others files through Dolphin and Thunar. Is this what you mean?

    Alan
    HP-200-5220a - Pentium Dual Core - 3GHz
    Xubuntu 13.10, Kubuntu 13.10

    Acer 5750Z - Intel Dual Core - 2.1GHz

    Xubuntu 13.10; Kali Linux; Puppy Linux

  4. #4
    Join Date
    Mar 2009
    Location
    Sydney,Australia
    Beans
    77
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: rsync - transfer files across network

    Looks like the ssh daemon is not running. Could you check the below.

    /etc/init.d/sshd status

    and check the status.

    Also under what user are trying to copy the files. Is the user same on both machines. You didn't specify the username in the target so it will use the existing user id. Is this available in the target host.
    Stay Foolish, Stay Hungry

  5. #5
    Join Date
    Jul 2010
    Location
    NSW, Australia
    Beans
    131
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: rsync - transfer files across network

    @jacob

    /etc/init.d/sshd status gives me
    bash: /etc/init.d/sshd: No such file or directory

    I have three computers each running Xubuntu and Kubuntu. Being lazy and unimaginative all installations have the same user - user . Also the same password. So the target name and the existing names are the same.

    I have tried ftp and filezilla and each time I try to connect I get permission denied.

    There must be some way that I can change the target computer to allow connection.

    Thank for your reply

    Alan
    HP-200-5220a - Pentium Dual Core - 3GHz
    Xubuntu 13.10, Kubuntu 13.10

    Acer 5750Z - Intel Dual Core - 2.1GHz

    Xubuntu 13.10; Kali Linux; Puppy Linux

  6. #6
    Join Date
    Jul 2010
    Location
    NSW, Australia
    Beans
    131
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: rsync - transfer files across network

    Done it!!! I am SOOOO happy!!

    First I used ssh on each computer to establish passwords (this may have been unnecessary - I was guessing)

    Then from the modem's DHCP client list I got the IP Address. If I use the target hostname (ASUS) the files are written to the SOURCE directory!!

    So this works (for me at least)
    rsync -auv --progress -s /Common/Documents user@192.168.2.3:/home/user/Share
    This is exactly what I want but I would like to know why I have to use the IP address and not the target host name.

    Thanks for help

    Alan
    HP-200-5220a - Pentium Dual Core - 3GHz
    Xubuntu 13.10, Kubuntu 13.10

    Acer 5750Z - Intel Dual Core - 2.1GHz

    Xubuntu 13.10; Kali Linux; Puppy Linux

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •