Unix administration - Help: RCP issue between solaris and redhat linux

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > September 2006 > Help: RCP issue between solaris and redhat linux





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help: RCP issue between solaris and redhat linux
steeles

2006-09-16, 1:43 pm

Was trying to do a rcp between redhat and solaris 10, but get stuck
somewhere.

hosts are in the .rhosts in both linux and solaris $HOME, there is no
trouble between Solaris.

Linux - > Solaris permission denyied.
Solaris ->Linux, it wait for a long time, then error connection timed out.

1. what is wrong?
2. what port is rcp using, if I need to cross over firewall ?

Thanks a million.


Andrew Gabriel

2006-09-16, 1:43 pm

In article <NgDOg.2$FA4.1@newsfe21.lga>,
"steeles" <steeles@gmail.com> writes:
> 2. what port is rcp using, if I need to cross over firewall ?


rcp runs over the rsh protocol, on tcp port 514.
Unlike rsh usage to run remote commands which uses a second tcp
connection for stderr, rcp runs with stdout and stderr both passed
back on the single TCP connection.

For the Linux -> Solaris case, rlogin and issue the command
who am i
Note the exact format of the remote hostname, and use this in
your .rhosts file. If you get this right, rlogin won't prompt
for a password either.

--
Andrew Gabriel
Chris Cox

2006-09-16, 1:43 pm

steeles wrote:
> Was trying to do a rcp between redhat and solaris 10, but get stuck
> somewhere.


.... and created a huge cross posting here there and everywhere!!

>
> hosts are in the .rhosts in both linux and solaris $HOME, there is no
> trouble between Solaris.


Check your RH /etc/pam.d/rsh and rlogin
and try allowing promiscuous entries....

auth required /lib/security/pam_rhosts_auth.so promiscuous

Something to try...

Can you share your .rhosts?

>
> Linux - > Solaris permission denyied.
> Solaris ->Linux, it wait for a long time, then error connection timed out.
>
> 1. what is wrong?


Not enough info to really tell... I just took a wild guess...

> 2. what port is rcp using, if I need to cross over firewall ?


A firewall could certainly cause some issues...
Allen McIntosh

2006-09-16, 1:43 pm


> hosts are in the .rhosts in both linux and solaris $HOME, there is no
> trouble between Solaris.
>
> Linux - > Solaris permission denyied.
> Solaris ->Linux, it wait for a long time, then error connection timed out.
>
> 1. what is wrong?


In addition to what others have said, Linux typically comes with rcp
disabled. (You're really better off using ssh/scp.) If you really want
to enable rcp, you need to modify the appropriate file in /etc/xinetd.d.
(I don't have it turned on or installed, so I can't check the file name
for you. Maybe someone else knows.) Set disable=no and force xinetd to
reload.
Logan Shaw

2006-09-16, 1:43 pm

steeles wrote:
> Was trying to do a rcp between redhat and solaris 10, but get stuck
> somewhere.
>
> hosts are in the .rhosts in both linux and solaris $HOME, there is no
> trouble between Solaris.
>
> Linux - > Solaris permission denyied.
> Solaris ->Linux, it wait for a long time, then error connection timed out.


That's a little bit ambiguous. Is this "Linux -> Solaris"?

linux$ rcp solaris:/tmp/foo /tmp

Or is this "Linux -> Solaris" instead?

solaris$ rcp /tmp/foo linux:/tmp

Both of those would normally copy a file from Linux to Solaris.

Or maybe "Linux -> Solaris" means a third thing, which is that
the Linux machine is initiating the connection, in which case
both of these are "Linux -> Solaris":

linux$ rcp solaris:/tmp/foo /tmp
linux$ rcp /tmp/foo solaris:/tmp

:-)

- Logan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com