Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Help: RCP issue between solaris and redhat linux

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2006, 08:38 PM
Default Help: RCP issue between solaris and redhat linux



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.




steeles
Reply With Quote
  #2  
Old 09-15-2006, 09:07 PM
Andrew Gabriel
Guest
 
Posts: n/a
Default Re: Help: RCP issue between solaris and redhat linux

In article <NgDOg.2$(E-Mail Removed)>,
"steeles" <(E-Mail Removed)> 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
Reply With Quote
  #3  
Old 09-15-2006, 09:26 PM
Chris Cox
Guest
 
Posts: n/a
Default Re: Help: RCP issue between solaris and redhat linux

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...
Reply With Quote
  #4  
Old 09-16-2006, 02:55 AM
Allen McIntosh
Guest
 
Posts: n/a
Default Re: Help: RCP issue between solaris and redhat linux


> 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.
Reply With Quote
  #5  
Old 09-16-2006, 06:14 AM
Logan Shaw
Guest
 
Posts: n/a
Default Re: Help: RCP issue between solaris and redhat linux

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
Reply With Quote
Reply

Tags
issue, linux, rcp, redhat, solaris

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.