Results 1 to 4 of 4

Thread: Combine Rsync and SSH Pass Problem

  1. #1
    Join Date
    May 2011
    Beans
    2

    Question Combine Rsync and SSH Pass Problem

    I made a script to backup file from each host with general password in local network. This script using SSH Pass and Rsync with this syntax:

    • rsync --rsh="sshpass -p password ssh -l root" hostath destinationpath

    Everything is okay under 9.10 version until I migrate to Ubuntu 11.04, there is always give an error:

    • rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(541) [Receiver=3.0.7]

    I am using bash version: GNU bash, version 4.2.8(1)-release (i686-pc-linux-gnu) and 2.6.38-8-generic kernel

    Please Help


    Regards,
    Indra

  2. #2
    Join Date
    Sep 2006
    Beans
    7,419
    Distro
    Lubuntu Development Release

    Re: Combine Rsync and SSH Pass Problem

    Here are some notes on using rsync and openssh for backup.

    I'd recommend using key-based authentication instead of storing the password in a script.

  3. #3
    Join Date
    May 2011
    Beans
    2

    Re: Combine Rsync and SSH Pass Problem

    Sorry for late reply, thanks for your advice Lars. Actually i still more suit for this password method on my system. Do you know how to solve it?

  4. #4
    Join Date
    Sep 2006
    Beans
    7,419
    Distro
    Lubuntu Development Release

    Re: Combine Rsync and SSH Pass Problem

    sshpass is new to me and I am not able to get it to function as described in your example. It just sort of sits there, without actually logging in, until I break the connection.

    The ways I've used rsync are described in the cookbook of OpenSSH

Tags for this Thread

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
  •