Operating System - HP-UX
1832596 Members
3176 Online
110043 Solutions
New Discussion

Re: configuring rsync daemon

 
Maciej Szewczykowski
Frequent Advisor

configuring rsync daemon

Dear All,

I've installed rsync in order to synchronize data between to b2600 machines.

There are two possibilities to use rsync, as you know:

1) via secure shell (single colon :) - i would choose this option if i knew where to get an appropriate version of secure shell from (the one available at software.hp.com somehow doesn't suite the b2600 machine)

2) via direct contacting rsync daemon (double colon ::). however in order to do this, i need to have it configured.

Anybody know the simpliest solution?

Thx in advance,

Maciek
11 REPLIES 11
Luk Vandenbussche
Honored Contributor

Re: configuring rsync daemon

Hi,

I should work through SSH

You can download the versions from

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

or do you have HPUX 10.20 on your B2600?

Maciej Szewczykowski
Frequent Advisor

Re: configuring rsync daemon

Thanks,

I've got HPUX 11.0.
Does it change anything?

Arunvijai_4
Honored Contributor

Re: configuring rsync daemon

You can install latest SSH on your 11.0 and try to configure rsync. It should work.

https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=T1471AA

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Maciej Szewczykowski
Frequent Advisor

Re: configuring rsync daemon

thanks a lot! i've succeeded in ssh installation, however the connection via rsync is being refused.

i do something like this:
$ rsync -t * remotehost:remotedir

and it says

error in rsync protocol data stream.
now, what's this?


Maciej Szewczykowski
Frequent Advisor

Re: configuring rsync daemon

it actually says:
remshd: login incorrect.

what to do in this case?

Muthukumar_5
Honored Contributor

Re: configuring rsync daemon

> remshd: login incorrect. >

Just create .rhosts file in remote machine's root user HOME Directory. It will work.

Login as root,
cat > $HOME/.rhosts
+ +


# chmod 400 $HOME/.rhosts

Try now. It will work.

hth.
Easy to suggest when don't know about the problem!
Maciej Szewczykowski
Frequent Advisor

Re: configuring rsync daemon

i've created .rhosts file in root directory / (in my system variable $HOME is not set for root).
the file looks like this

172.23.56.56 username

it's placed in remote file system, access rights are set to 400.
however the connection is still being refused.

do i have to use rsync as root only? if not, am i to create .rhosts file for the user that uses rsync?

help me i'm in hell.
Geoff Wild
Honored Contributor

Re: configuring rsync daemon

You need .rhosts in the "username" directory - r/o by username.

BTW - you can also use rdist for what you want as well...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Maciej Szewczykowski
Frequent Advisor

Re: configuring rsync daemon

thanks a lot!
with your help i've managed to solve the problem.

regards,

maciek
Patrick Preuss
Trusted Contributor

Re: configuring rsync daemon

But you don't use ssh, if you whant to say:

rsync -e ssh -rav

for userauth use then ssh key's or the .shosts file.

hth
patrick marc
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
Florian Heigl (new acc)
Honored Contributor

Re: configuring rsync daemon

Patrick is right, all other solutions won't use ssh :)
yesterday I stood at the edge. Today I'm one step ahead.