cant rsh without password dispite following howto's!
Why cant i rsh without password??????
I log on as user rolle. my etc/hosts-file look like this 127.0.0.1 localhost 192.168.0.4 Io.rolle.se io 192.168.0.3 Europa.rolle.se europa 192.168.0.2 Callisto.rolle.se callisto 192.168.0.1 Jupiter.rolle.se jupiter my hosts.allow: ALL : 192.168.0.0/255.255.255.0 my hosts.equiv: jupiter callisto europa and has the following rights -rw-r--r-- 1 root root 24 Dec 8 18:26 hosts.equiv whats wrong??? And I know about ssh, and can use ssh without password, but I need to know whats wrong with my setup? |
I had the same problems and finally solved it 10 minutes ago.
You have to make sure of 4 things (3 if not root): - That you have a file .rhosts in the home directory of the rsh server for the user you are trying to rsh under. The .rhosts file contains a line per machine that will be allowed a passwordless login. So if john would rsh w/o a password, then on the rsh server you will have /home/john/.rhosts like: Code:
# cat /home/john/.rhosts - That the user you are rsh-ing under must have a login shell on the rsh server machine, like /bin/bash ... something like /sbin/nologin for exameple will give you errors. So make sure that john has a login shell or change it with: Code:
# usermod -s /bin/bash john Code:
# cat /etc/securetty Code:
# rsh -l john node001 ls /tmp And of course the /etc/hosts and /etc/hosts.equiv thingies ... :) Hope this helped. Cheers, Bogdan |
thanks
Thanks Bogdan!
|
All times are GMT -5. The time now is 08:32 PM. |