Help: How to use RSH to login machines without password?

This is a discussion on Help: How to use RSH to login machines without password? within the Linux Networking forums, part of the Linux Forums category; Hi, I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2007
Amy Lee
 
Posts: n/a
Default Help: How to use RSH to login machines without password?

Hi,

I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first machine
is server, so I wanna use rsh to login other 3 machines. Nut I don't wanna
type password every time.

My server's OS is RHEL 3 Linux, others' is FC6.
Which files and service should I operate?

Thank you very much~

Regards,

Amy Lee
Reply With Quote
  #2 (permalink)  
Old 09-15-2007
Robert Harris
 
Posts: n/a
Default Re: Help: How to use RSH to login machines without password?

Amy Lee wrote:
> Hi,
>
> I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first machine
> is server, so I wanna use rsh to login other 3 machines. Nut I don't wanna
> type password every time.
>
> My server's OS is RHEL 3 Linux, others' is FC6.
> Which files and service should I operate?


Use ssh and login using Public Key Authentication (so your computer
shares a secret with the other machines that it wants to log into).

"man ssh" tells you how.

Robert
>
> Thank you very much~
>
> Regards,
>
> Amy Lee

Reply With Quote
  #3 (permalink)  
Old 09-15-2007
Amy Lee
 
Posts: n/a
Default Re: Help: How to use RSH to login machines without password?

On Sat, 15 Sep 2007 11:53:51 +0000, Robert Harris wrote:

> Amy Lee wrote:
>> Hi,
>>
>> I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first machine
>> is server, so I wanna use rsh to login other 3 machines. Nut I don't wanna
>> type password every time.
>>
>> My server's OS is RHEL 3 Linux, others' is FC6.
>> Which files and service should I operate?

>
> Use ssh and login using Public Key Authentication (so your computer
> shares a secret with the other machines that it wants to log into).
>
> "man ssh" tells you how.
>
> Robert
>>
>> Thank you very much~
>>
>> Regards,
>>
>> Amy Lee


Thank you sir. However, I've known how to configurate ssh without
password, I wanna know the same function in rsh.


Reply With Quote
  #4 (permalink)  
Old 09-15-2007
Robert Harris
 
Posts: n/a
Default Re: Help: How to use RSH to login machines without password?

Amy Lee wrote:
> On Sat, 15 Sep 2007 11:53:51 +0000, Robert Harris wrote:
>
>> Amy Lee wrote:
>>> Hi,
>>>
>>> I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first machine
>>> is server, so I wanna use rsh to login other 3 machines. Nut I don't wanna
>>> type password every time.
>>>
>>> My server's OS is RHEL 3 Linux, others' is FC6.
>>> Which files and service should I operate?

>> Use ssh and login using Public Key Authentication (so your computer
>> shares a secret with the other machines that it wants to log into).
>>
>> "man ssh" tells you how.
>>
>> Robert
>>> Thank you very much~
>>>
>>> Regards,
>>>
>>> Amy Lee

>
> Thank you sir. However, I've known how to configurate ssh without
> password, I wanna know the same function in rsh.
>
>

Ah. Well, on my computer, rsh is a symlink to ssh and if you configure
one, then you also configure the other. However, if you want to use the
traditional rsh with the traditional insecure method of logging in, then
create a file called ".rhosts" in your home directory of each of the
machines that you want to log into containing the line:

yourusername yourhostname

where yourusername and yourhostname are replaced by your user name and
host name respectively. Check with rlogin that you can log into your
other hosts without a password.

Robert
Reply With Quote
  #5 (permalink)  
Old 09-15-2007
Allen Kistler
 
Posts: n/a
Default Re: Help: How to use RSH to login machines without password?

Amy Lee wrote:
> I have 4 PCs in LAN, IP are 192.168.0.1~192.168.0.4, and the first machine
> is server, so I wanna use rsh to login other 3 machines. Nut I don't wanna
> type password every time.
>
> My server's OS is RHEL 3 Linux, others' is FC6.
> Which files and service should I operate?


Doing this with rsh isn't a recommended practice.
If you have to do it, .rhosts is preferable to hosts.equiv.
Reply With Quote
  #6 (permalink)  
Old 09-18-2007
Chris Davies
 
Posts: n/a
Default Re: Help: How to use RSH to login machines without password?

Robert Harris <robert.f.harris@blueyonder.co.uk> wrote:
> However, if you want to use the
> traditional rsh with the traditional insecure method of logging in, then
> create a file called ".rhosts" in your home directory of each of the
> machines that you want to log into containing the line:


> yourusername yourhostname


I think you'll find it should be the other way round (remote-host
remote-user).

Also, another gotcha is that the remote-host part must be an exact match
for the name (or IP address) that the target host sees the originating
host as. If you don't use /etc/hosts or DNS, now would be a good time
to start.

# This is /etc/hosts
127.0.0.1 localhost loopback
192.168.0.1 somehost.my.domain somehost
192.168.0.2 anotherhost.my.domain anotherhost
etc.

Chris
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:38 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0