question
Wayne Davison
wayned at samba.org
Thu Jun 3 20:34:09 GMT 2004
On Thu, Jun 03, 2004 at 09:58:40PM +0200, sc2 at gmx.at wrote:
> rsync -e scriptname (content of script)
> in scripts
> ssh -i ~/.ssh/id_rsa /home/mysql host:/usr/src
This is very hard to decypher, but it looks like you may have put rsync
options in your ssh script. Also, don't use '~' -- it might not be
expanded (it depends on your shell and the quoting). Try this command
(subsitite USER as appropriate):
rsync -e 'ssh -i /home/USER/.ssh/id_rsa' /home/mysql host:/usr/src
or try this:
rsync -e myssh /home/mysql host:/usr/src
and put this in myssh:
#!/bin/sh
ssh -i /home/USER/.ssh/id_rsa "${@}"
If that doesn't work, you should be checking for ssh errors.
..wayne..
More information about the rsync
mailing list