What is the difference between rsh and rlogin ?

What is the fundamental difference between these two ? Which one recommended to use in the given particular situation? Actually these looks very old and I only used telnet and ssh yet. so willing to use them also.
Who is Participating?
arnoldConnect With a Mentor Commented:
Depending on what it is you are trying to do, ssh/scp is a better more secure approach.
rlogin remote login.
rsh remote shell.

rlogin lets you perform tasks as though you loged into the remote system.
rsh lets you execute tasks without the need to login.

rlogin: http://unixhelp.ed.ac.uk/CGI/man-cgi?rlogin

Often RSH and Rlogin are disabled since they often run under inetd (xinetd).

omarfaridConnect With a Mentor Commented:
rlogin is for remote login and rsh is for remote shell. They are used like

ssh username@remotesystem (rlogin)
ssh username@remotesystem "command" (rsh)

The purpose is to set trust between two systems with out passwords (very dangerous and not recommended since it is done based on ip addresses which can be spoofed)

beer9Author Commented:
Thanks :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.