Re: running scp or rsync from a script

From: Bob Smith (bob_at_netprt.com)
Date: 07/28/04

  • Next message: Jianping Zhu: "how to start a service at startup?"
    Date: Wed, 28 Jul 2004 10:06:32 -0600
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    *man ssh_config* will explain how to set up a specific account
    configuration which will allow you to configure batch mode for the
    user. This disables password authentication.

    If you don't want to do that, then you might look at Expect, which is
    another scripting language. It allows you to program the password into
    the script file in a pseudo-interactive manner. http://expect.nist.gov/

    -Bob

    Chris Purcell wrote:

    >I have a bunch of Linux workstations that need to copy files to a central
    >server via cron daily. I want to set up either an scp or rsync script
    >(either Perl or bash), but the problem is the password prompt. There
    >doesnt' seem to be anyway to enter a password into an scp script, but with
    >rsync I can use the --password-file=FILE option only if the central server
    >is running the rsyncd daemon. I'd much rather use scp than have to run
    >an rsync server. I guess my only option with scp would be to set up
    >RSA/DSA keys. The workstations will scp to the server as a user called
    >"tc", not root. It would be way too much work having to copy
    >certificates from each workstation to the server so I was wondering if its
    >possible to allow anybody to ssh/scp into the central server as the user
    >"tc" without entering a password? The user "tc" has very limited access
    >and the server is on a LAN, so security isn't an issue here. Does anyone
    >have any other ideas on how to go about doing this?
    >
    >Thanks,
    >Chris
    >
    >
    >
    >
    >

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Jianping Zhu: "how to start a service at startup?"

    Relevant Pages

    • RE: running scp or rsync from a script
      ... I can't do that though because these are workstations that will ... > I'm using RSA keys, ... > The server isn't getting rebuilt so the keys will never change. ... I want to set up either an scp or rsync script ...
      (RedHat)
    • batch job using scp
      ... private keys on each side and have copied the public (via scp) to the ... Each server is also in the other server's ... When trying to run the script in verbose batch mode I see the ...
      (comp.security.ssh)
    • script doesnt work when run as cron job
      ... I have this script that I wrote to automate worstation backups on a Mitel ... It's a script that maintains mirrors of all shares on workstations in an ... office by mounting a Windows "documents" share using 'samba' on the server ... and then using 'rsync' to update the backup in the users home directory on ...
      (comp.unix.shell)
    • Re: smbfs 2 GB file size limit
      ... Was your issue with reading from or writing to a SMB share? ... What is the server software and OS version? ... What error message are you getting from your FreeBSD client? ... Did you really mean to say scp or cp? ...
      (freebsd-questions)
    • Re: smbfs 2 GB file size limit
      ... >> Was your issue with reading from or writing to a SMB share? ... >> What is the server software and OS version? ... > Did you really mean to say scp or cp? ... > specifying it's dialect capabilities in the smb negotiation. ...
      (freebsd-questions)