Remote Shell: rsh

As you might have seen with telnet, that you must enter a username and password in order to log on to another host. This may not work out well for those people who need to remotely log in to other hosts often . They want that the other host  automatically to trust them so that when issued a remote login request, the system would allow them access without asking for a login and password.

The double-win has a feature like that and has the ability to automate tasks that require one host to invoke a program on another host.

To accommodate this in Linux, the rsh command was created. In its simplest form, specify the name of the host you wish to log in to, same as the way you would do for telnet. For example:
[rwhite@workbox rwhite]$ rsh gregory

If you have set up your configuration files so that gregory knows to trust you, the system will automatically give you a shell prompt. If the configuration file does not automatically trust you, you will need to enter your password again.

To set up the configuration file, edit the .rhosts file ( there is a period in front of the filename) in your home directory. Open the .rhosts file and create a line that looks like this:
host_to_trust your_username

And If you want to rsh from workbox to gregory without being prompted for a password, create the following file in an .rhosts file in your home directory on gregory:
workbox rwhite

And thats it you are ready to go!

The rsh enables you to login remotely at shell prompt of other server but than again there is a utility known as ssh(secure shell client). Just have a look at that too and than decide which one you would like to use.


0 Responses to "Remote Shell: rsh"

Post a Comment


Managing Shell And its Secrets

Subscribe To Get Update On Mobile

Get updates of latest post on your mobile free