How to enable and test the rsh and rcp in RHEL 5.3?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to enable and test the rsh and rcp in RHEL 5.3?
# 1  
Old 12-14-2010
How to enable and test the rsh and rcp in RHEL 5.3?

Hello,

Can you help me on how to activate the rsh and rcp services. And also how do i test it after i have enable it

Thanks.
# 2  
Old 12-14-2010
Besides those being horribly insecure and a bad idea, why do you need them? There are often other and better ways to access and run commands on Linux
# 3  
Old 12-14-2010
I would very much suggest using ssh and scp instead of these archaic services that have huge security implications. Both "ssh" and "scp" are drop in replacements and work in very similar ways. If, however, you want password-less shell access or copying, you will need to carry out further steps. If you definitely want to run rsh and rcp you need to install the rsh and rsh-server rpm's from the RHEL install CD's (You may optionally need the xinetd rpm as well).
# 4  
Old 12-14-2010
After rsh RPMs are installed, you may need to do the following:

- add rsh to /etc/securetty
- set "disable = no" in /etc/xinetd.d/rsh
- chkconfig xinetd on
- service xinetd restart
# 5  
Old 12-14-2010
Thanks for the replies, how about the /etc/hosts.allow? Do i need to modify it? What it should look like?
# 6  
Old 12-15-2010
After being told how horrible a security risk this is, you still intend on using it vs alternatives?
# 7  
Old 12-15-2010
Yes, you need to make an entry for rshd if you are using TCP wrappers. For example, if you want to allow all hosts with an address of 192.168.0.* access, this is the entry you need to add to /etc/hosts.allow.
Code:
rshd : 192.168.0.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

RCP slow down and blocks login, telnet, rsh, etc on target server

Hello I have a LPAR AIX 6.1 on Power VM, Vio 2.2.3 and when I execute a rcp to this machine, I cant, simultaneosly, rlogin, telnet, rsh to this same LPARt. This commands stay hanged till the copy end, and Imeddiatlely the comand is executed (rlogin, telnet, rhs, etc). Someone can give me... (1 Reply)
Discussion started by: artur_dietrich
1 Replies

2. UNIX for Dummies Questions & Answers

Unable to enable SeLinux on RHEL 7

I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6... (3 Replies)
Discussion started by: satish51392111
3 Replies

3. IP Networking

Test Network Routing Issues (FREEBSD and RHEL)

Hello, I'm attempting to setup a test network with a client-server based architecture using a proprietary application. The client works by communicating with the server on separate links (typically cellular connections) and then initiates a tunnel over each active link. However, in place of the... (0 Replies)
Discussion started by: shadyuk
0 Replies

4. Shell Programming and Scripting

ftp, rlogin , rcp, rsh are not wroking

Hi Friends I am facing one problem, I am not able to use ftp, rlogin , rcp, rsh in a particular server. when I am trying to ftp certain file from that server it is giving Connection closed by remote host. Now from other unix box I am not able to rlogin that particular server. as .rhosts... (3 Replies)
Discussion started by: itsjoy2u
3 Replies

5. UNIX for Advanced & Expert Users

how to check rsh/rcp between 2 servers

Hi, I need to check if rsh and rcp are enabled between to servers. What is the command to check both ? Servers : SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V445 SA says that it is configured , so what setting I need to do ? These must be enable for ORACLE id on... (1 Reply)
Discussion started by: reply2soumya
1 Replies

6. Solaris

How to enable rsh

HELP..... How to enable and disable RSH in solaris 8 (4 Replies)
Discussion started by: gini
4 Replies

7. Shell Programming and Scripting

rcp error trapping in rsh

I am writing a program which is something like below: rsh host1 "rcp file dest:directory" I am running this script from a machine host2. host1 has rlogin configuration for host2. but, dest machine has no rlogin configuration for host1 and fails on remote calls. Could anyone tell me how... (2 Replies)
Discussion started by: vvejendla
2 Replies

8. UNIX for Dummies Questions & Answers

How to enable rsh on Solaris 5.9 and Tru64 4F

Hi everyone, I'n new on this... And I don't have experience. I need to know how to enable rsh between solaris and tru64. I don't know what i need to modify or install. I really don't have idea. If somebody has documentation about this, or has a procedure to do this. I really will... (1 Reply)
Discussion started by: cm247a
1 Replies

9. Shell Programming and Scripting

Rsh: test $? on remote system.

Hi, a little help. I need to test the return code of a list file command on a remote system (Unix) using the rsh command. More exactly, to test is a directory exists, I try the following command: rsh $remoteHost "ls -la " $DirRemote Now, if the $DirRemote is not correct and I test... (3 Replies)
Discussion started by: gio123bg
3 Replies

10. UNIX for Advanced & Expert Users

rcp & rsh

Hi everybody, I have a problem with rcp & rsh command from Winnt 4 to an AIX machine. I would like to use rsh from Winnt on Unix but it works only with some machines of the domain. With the others, an error message appears and say : "myadress.com: rshd: 0826-826 The host name for your address... (2 Replies)
Discussion started by: dfrangidis
2 Replies
Login or Register to Ask a Question