freebsdsl at yahoo.com
Fri Apr 23 16:52:27 GMT 2004
I uncommented shell in inetd.conf on the destination system.
The command " rsh 126.96.36.199 which rsync" is working fine now .
I get the output /usr/local/bin/rsync.
But the command:
rsync -avvznrbe rsh /sourcepath 188.8.131.52:/destinationpath
Still does not work. I get the same error as i used to get before.
opening connection using rsh 184.108.40.206 rsync --server -vvbnlogDtprz . /destinationpath
220.127.116.11: operation timed out
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)
Tim Conway <conway at us.ibm.com> wrote:
Ah! Now I've got you.
rsh without parameters does an rlogin, which uses the service commonly
called "login", on port 513.
With parameters, it does a plain rsh, using the service commonly called
"shell", on port 514.
Here's a system with both holes open (deep inside a well-protected
intranet, host and usernames deleted to protect the innocent).
egrep "^shell|^login" /etc/services /etc/inetd.conf
/etc/services:shell 514/tcp cmd # no
/etc/inetd.conf:shell stream tcp nowait root /usr/sbin/in.rshd
/etc/inetd.conf:login stream tcp nowait root /usr/sbin/in.rlogind
You probably have the shell line in inetd.conf commented out. open it,
HUP inetd, and you're probably in business. No sane security guys could
complain about shell if login is permitted.
I'm pretty sure that's your issue. It's also possible, of course, that
you shell service is on an alternate port, or commented out of services.
You'll see it, whatever it is.
All ssh sessions go through the sshd service, on port 22, and most systems
that have one or the other of login and shell enabled have both. Yours is
just an unusual case.
Unix System Administration
Contractor - IBM Global Services
conway at us.ibm.com
when i gave "rsh 18.104.22.168 which rsync" at the source system i got the
22.214.171.124: Connection refused
"rsh 126.96.36.199" works perfectly fine.
What could be the problem..?
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
More information about the rsync