I am trying to do rsh on one of my VM but getting connection refused error. I have checked /etc/hosts and /etc/resolv.conf both have proper hostname, IP and domain.

  • 1
    What is the reason you want to use rsh? Ssh offers the same functionality but securely and is normally installed and running by default. If you need rsh for some reason please add the output of /sbin/service rsh status and ping between both machines to your answer.
    – Bram
    Oct 12 '15 at 17:37
  • as pointed out, rsh might not be activated (from memory in /etc/service.d ? a file with remsh, you must have added a rpm remote-service ). I can't tell yet you were to do it, I'll have a look within twelve hours if question is still unsolved.
    – Archemar
    Oct 12 '15 at 17:57

Connection refused is the OS telling "I have no program to your connection to" that means that nothing is listening for your rsh commands.

If I'm not mistaken rsh connects to port 514 by default. So if you really must use rsh you need to check your target system for rshd

Please consider another service ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.