Hi Williams,
You were right, my sshd was not running on host2.
However, when I re-start sshd and run the command I am asked for a root
password.
When I run rsync with --rsh option I am NOT prompt for password.
How can I rsync with -e ssh without being prompt for a password? I run the
commands from the script and can't be asked for a password.
${RSYNC_COMMAND} ${DOCUMENT_ROOT} host:${DOCUMENT_ROOT} > ${LOG_FILEB}
RSYNC_COMMAND=/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -av -e
/usr/local/bin/ssh
Any hints?
Thanks,
Magda
> -----Original Message-----
> From: Williams, William [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 10:07 AM
> To: 'Magdalena Hewryk'; [EMAIL PROTECTED]
> Subject: RE: ssh
>
>
> Magda,
>
> Problem 1 here is caused by sshd either not running
> or not being installed on the receiving host (host2).
>
> If you login to host2 and start up sshd you should be
> in pretty good shape.
>
> -----Original Message-----
> From: Magdalena Hewryk [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 9:46 AM
> To: [EMAIL PROTECTED]
> Subject: ssh
>
>
> Hi,
> I'm trying to use the "ssh" option instead of "rsh" but I am getting
> some
> errors.
> Below are examples:
>
> 1.
> # /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -av -e ssh
> /tmp/hello root@host2:/tmp
> Secure connection to host2 refused; reverting to insecure method.
> Using rsh. WARNING: Connection will not be encrypted.
> building file list ... done
> hello
> wrote 103 bytes read 32 bytes 24.55 bytes/sec
> total size is 5 speedup is 0.04
>
> (if I add the whole path "-e /usr/local/bin/ssh" I get the
> same WARNING)
>
> 2.
> # /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --ssh
> "/usr/local/bin/ssh" -av /tmp/hello root@host2:/tmp>
> /usr/local/bin/rsync: unrecognized option `--ssh'
>
> I do have ssh installed on the system and I can ssh to other machines:
> # which ssh
> /usr/local/bin/ssh
>
> # ssh -l magda hostX
> magda@hostX password:
> Last login: Thu Mar 22 09:24:59 2001 from 000.00.00.00
>
> Any idea why ssh doesn't work for me?
>
> Thanks,
> Magda
>