|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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... |
|
#4
|
|||
|
|||
|
> 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. |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Tags |
| issue, linux, rcp, redhat, solaris |
| Thread Tools | |
| Display Modes | |
|
|