Configure rsh access without a password in Linux

Source: Internet
Author: User
In Linux, configure rsh access without a password-Linux Enterprise Application-Linux server application information. The following is a detailed description. There are multiple methods to configure rsh without a password. For example, you can configure/etc/hosts. equiv or generate a. rhosts file for each user. During configuration, it is usually written into a allowed remote computer name (of course, the corresponding IP Address should exist in/etc/hosts). The computer name should be the same as the fastname in the DataStage configuration file.

An example of using the create. rhosts method for each user to configure rsh login without a password:

Note: In this example, the dsadm user's rsh is configured to log on without a password. CloneLinux indicates the computer name of the remote node. The IP address is 192.168.1.194, The ServerLinux master node, and the IP address is 192.168.1.193.

To detect the rsh configuration, run the following command:

[Root @ mg04 root] # rpm-aq | grep rsh
Rsh-0.17-5
Rsh-server-0.17-5

Run/urs/bin/ntsysv on the server and select the following services (rexec, rlogin, rsh)

Rsh is an xinetd service. You can directly modify the/etc/xinetd. d/rsh script file to disable = no

If you want to configure the root user's rsh to log on without a password, you also need to add rsh rexec rlogin in vi/etc/securetty. If you are not the root user, this step can be omitted.

In the dsadm home directory of the CloneLinux machine, edit the file. rhosts: Add 192.168.1.193 dsadm to allow dsadm users on 192.168.1.193 to log on to the local machine without a password. to configure an oracle user, you only need to configure it in the oracle user's home directory. rhosts

Test: log on to Server Linux using the dsadm user and run the rsh CloneLinux command.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.