Rsh password-less logon configuration in linux

Source: Internet
Author: User
Article Title: rsh password-free logon configuration in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

[Guide] The steps are all on the server side. Linux is centos. Kernel 2.6.9-5.0.5.EL
 
The configuration steps are all on the server side. Linux is centos. Kernel 2.6.9-5.0.5.EL

Note: This is a normal user's rsh logon without a password. Other settings are required for root.

1. First, install the rsh server on the server to which you want to log on.

2. If there are no special restrictions,/etc/hosts. allow/etc/hosts. deny

These two files are empty.

Add ALL: ALL in/etc/hosts. deny to limit

In/etc/hosts. allow, add

In. rshd: 192.168.0. in. rlogind: 192.168.0. portmap: 192.168.0. sshd: 192.168.0.

Similar permitted information.

I will not talk about it here. I have no configuration here.

3. Rsh with password-less login, mainly the/etc/hosts. equiv file.

Add the client host name.

(Depressing, It was the host name that caused me two days. I wrote the domain name of the client)

Another way is to create the. rhosts file under the corresponding user,

Then add the Host Name and user name. I did not succeed in this method.

4. Finally, start the rsh server. You need to go to the/etc/xinetd. d directory.

Change disable = yes in rsh, rlogin, and rexec files to disable = no.

Then restart the service at/etc/init. d/xinetd restart.

---------

This step is also included in some articles.

Vi/etc/securetty

Add rsh rexec rlogin.

Or

Echo "rexec">/etc/securetty

Echo "rlogin">/etc/securetty

Echo "rsh">/etc/securetty

But I don't need this step.

In addition. In step 2, I found that only the rlogin file can be modified.

Do I have to use a password for rlogin?

# Rsh compute-0-0

Connect to address 192. 168. **. **: Connection refused

Trying krb4 rlogin...

Connect to address 192. 168. **. **: Connection refused

Trying normal rlogin (/usr/bin/rlogin)

Last login: Thu Nov 24 08:32:15 from 192. 168 .**.**

Rocks Compute Node

Rocks 4.1 (Fuji)

Profile built 16-Nov-2005

Kickstarted :49 16-Nov-2005

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.