>>Eagle Fly Free>>

My Dreams .. My Goal .. My Achievements .. My Life .. My Everything

[tips'n'tricks] enable rsh/rlogin in solaris 10

with 4 comments

hehehheh .. just want to share .. just in case somebody (perhaps) needs this kind of how to.

Why do we still use rsh for remote command instead of ssh which is more secure ? humm .. perhaps this kind of question will be raised by someone when his / her friend use this kind of command to do the remote command from other machine.

Yeps, that’s true .. ssh is more secure than rsh .. but … there’s special case that some service still needs rsh as a mandatory checlist for it to run normally. In my case .. cacti !!!

Cacti service still needs rsh to pool its data from other machine for it to be able to draw such a statictic graph.

So .. here it is how to enable rsh service in solaris 10 :

Checking whether rsh service up or not by :

telnet target_ip_address 513

if the answer like below :

Trying target_ip_address…
Connected to target_ip_address.
Escape character is ‘^]’.

so it’s fine, i mean the rsh already UP and running, next just need to make sure that you can do remote command with rsh by :

rsh target_ip_address -l username ls (try to list directory through remote command).

if you can see the result .. so it’s fine .. everything it’s fine .. no need to read my next writing.

But if none of above happen .. so .. you need to :

- enable rsh on remote machine by:

svcadm enable svc:/network/login:rlogin --> this is for enabling rlogin

svcadm enable svc:/network/shell:default --> this is for enabling remote shell command

- add in the .rhosts under home directory of target machine like below (to be able to login without password) :

ip_address_or_hostname_from_machine_want_to_login_in       username_used_by_machine_want_to_login_in

for example, if i have 2 server :

Server A and Server B.

then Server A with username = super wants to login to Server B with username = kampret

So what you need to do just :

on server B :

- enable rsh and shell/default service as mention in tutorial above.

- login to server B normally with user kampret and then just go to kampret’s home directory and create file with .rhosts as its name and write below on it :

server_A_IP_ADDRESS_or_HOSTNAME     super

that’s it … no need for changing something else on server A.

Thank you .. hopefully it will be usefull for everyone.

-SuperpinjaL-

Written by superpinjal

September 25, 2008 at 3:06 am

4 Responses

Subscribe to comments with RSS.

  1. Thanks, this is a useful post. Learned something about ssh and rsh.

    Johnell Averilla

    September 30, 2008 at 8:43 am

  2. This was just the help I needed………………

    Thank you……………….

    Clarence Mitchell

    October 23, 2008 at 3:14 am

  3. thank you all for dropping you thanks.
    Glad that what i wrote is useful for everyone.

    superpinjal

    October 23, 2008 at 11:41 am

  4. Thanks
    Can you tell about disabling RSH on solaris 10

    sandeep

    December 9, 2008 at 6:34 pm


Leave a Reply