Subject: Re: rsh/ssh support
To: Stephen Borrill <netbsd@precedence.co.uk>
From: Prasanta Sadhukhan <Prasanta.Sadhukhan@Sun.COM>
List: netbsd-help
Date: 12/11/2006 13:23:33
Hi,
Stephen Borrill wrote:

> On Thu, 30 Nov 2006, Prasanta Sadhukhan wrote:
>
>>> The kernel has nothing to do with rsh/ssh. The ssh service is provided
>>> by sshd(8). To enable this add the following to your /etc/rc.conf:
>>> sshd=YES
>>>
>>> and then either reboot or type:
>>> /etc/rc.d/sshd start
>>
>>
>> Thanks...and what about rsh?
>
>
> Edit /etc/inetd.conf and uncomment the login and shell lines before 
> running /etc/rc.d/inetd reload
>
When I do an rsh from my linux system to netbsd, it's keep asking for 
password even though I have setup my linux ~/.rhosts file properly with
<my m/c> <username>
I commented the /etc/pam.d/rsh file for these lines
#auth           required        pam_nologin.so          no_warn
#auth           sufficient      pam_rhosts.so           no_warn allow_root
#auth           required        pam_unix.so             no_warn 
try_first_pass
and then restarted/reloaded the inet.d but still getting the password 
problem.
If I give the password, then it's able to login but I want to login 
without giving the password, which I can do from my linux to other servers
Any suggestion?

Regards
Prasanta
I tried to