Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help: RCP issue between solaris and redhat linux

54 views
Skip to first unread message

steeles

unread,
Sep 15, 2006, 3:38:12 PM9/15/06
to
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

unread,
Sep 15, 2006, 4:07:07 PM9/15/06
to
In article <NgDOg.2$FA...@newsfe21.lga>,

"steeles" <ste...@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

unread,
Sep 15, 2006, 4:26:17 PM9/15/06
to
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

unread,
Sep 15, 2006, 9:55:30 PM9/15/06
to

> 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

unread,
Sep 16, 2006, 1:14:32 AM9/16/06
to
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

0 new messages