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