LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rcp works outward, but not inward (https://www.linuxquestions.org/questions/linux-newbie-8/rcp-works-outward-but-not-inward-651338/)

Sanford Stein 06-24-2008 01:20 PM

rcp works outward, but not inward
 
I am a Linux newbie -- background is Solaris and HP/UX. I am building a new server running RHEL 5.1. I can do an rcp outward from the new server (send or receive) but cannot rcp INTO this system from a different server. The other server is running RHEL 4. The error message is simply "connection refused". Can anybody tell me what is configured incorrectly?

(I know that scp is preferable, but I have been told that existing scripts all use rcp so I need to get it working, along with rlogin and rsh.)

Thanks,
SS

solarkash 06-24-2008 03:44 PM

Did you enabled these services ?

... ]# chkconfig --list | grep -E -e rsh -e rlogin -e rexec
rexec: on
rlogin: on
rsh: on

If you are,

Are you trying to connect by root ? -- If yes, edit /etc/securetty ( add the lines "rsh" "rexec" "rlogin" )
For regular user, check .rhosts file mode (600) or /etc/hosts.equiv if you use netgroup map.
The last thing you should check is the pam settings

Good luck


All times are GMT -5. The time now is 09:24 PM.