-1

I installed by yum the latest rsh package ( because on my linux machine rsh and rcp binaries not exists )

 # yum install rsh

so I verified by:

rpm -qa | grep -i rsh

 rsh-0.17-60.el6.x86_64
 rsh-server-0.17-17.x86_64

then I reboot my linux machine - red-hat 6.4

and try to do the following tests

# rsh localhost
  connect to address ::1: Connection refused
  Trying 127.0.0.1...

.

 rcp localhost:/etc/hosts /tmp
 rcmd: localhost: Connection reset by peer

in my machine .rhosts and /etc/hosts.equiv not exists ( not sure if rsh installation VIA yum should create them ? )

please advice what the next steps that I need to do in order to solve this issue ?

maihabunash
  • 443
  • 1
  • 11
  • 25

1 Answers1

2

To be honest, I've never used rsh (only SSH). I am under the impression the rsh server is not started / listening to connection properly.

  1. Is the server process running

ps aux | grep rsh

Note: "ps aux" will list all processes. You should have a line with "rsh".

  1. Is the process listening to TCP/514

ss -t -l

Note: Display all tcp socket which are listening. You should have one for port 514. I use "ss" which is the replacement of netstat. I am not sure if it is installed on your Red Hat.

Finally, here is a tutorial I found. It seems like you might need to edit the configuration file to enable the daemon.

http://www.itzgeek.com/how-tos/linux/centos-how-tos/setup-remote-shell-access-on-centos-6-rhel-6.html#axzz36sMYbceE

Alex
  • 66
  • 3