LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2003, 01:51 AM   #1
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Rep: Reputation: 0
No password needed for ssh or rsh wanted.


Hello, I have 3 computers that I want to be able to ssh and rsh to each other with out needing to use their uses password. I'm running slackware 9.0 on the first 2 computer and slackware 9.1 on the 3rd, I can ssh to them normally with out problems when i do rsh i get this:

arnie@t800:~$ rsh t1000 -n echo $SHELL
t1000.skynet: Connection refused

I want them to be able to talk with out passwords so i can use lam 7.0 on them (www.lam-mpi.org)

Here are the files i have on each machine

my /etc/hosts.equiv:

localhost
t800.skynet arnie
t1000.skynet rpatrick
tx.skynet kloken

my /etc/host:

127.0.0.1 localhost
192.168.0.201 t800.skynet t800
192.168.0.202 t1000.skynet t1000
192.168.0.203 tx.skynet tx

my /home/[username]/.rhosts:

t800.skynet user=arnie
t1000.skynet user=rpatrick
tx.skynet user=kloken


I think I'm meant to add something to the /etc/passwd file but im not sure what. Any help will be appreciated.
thanks
 
Old 10-25-2003, 08:17 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
http://www.osxserver.ch/showthread/t-1719.html


1) Perform login without a password promt from "remotehost" to "thishost".

- open a shell
- ssh remotehost -l user
- cd .ssh
- ls
-> if id_dsa, id_rsa etc exists,
skip the next two steps!
- ssh-keygen -t rsa
- ssh-keygen -t dsa
- scp *.pub user@thishost:~/
- exit
- cat id_rsa.pub >> .ssh/authorized_keys
- cat id_dsa.pub >> .ssh/authorized_keys
- rm id_rsa.pub id_dsa.pub

You should now be able to connect from "remotehost" to "thishost"
without a password promt.


2) Perform login without a password promt from "thishost" to "remotehost".

- open a shell
- cd .ssh
- ls
-> if id_dsa, id_rsa etc exists,
skip the next two steps!
- ssh-keygen -t rsa
- ssh-keygen -t dsa
- scp *.pub user@remotehost:~/
- ssh remotehost -l user
- cat id_rsa.pub >> .ssh/authorized_keys
- cat id_dsa.pub >> .ssh/authorized_keys
- rm id_rsa.pub id_dsa.pub
- exit

You should now be able to connect from "thishost" to "remotehost"
without a password promt.
 
Old 11-02-2003, 02:36 AM   #3
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Original Poster
Rep: Reputation: 0
thanks, It works for ssh but not rsh. I still get the conenction refused.
 
Old 11-02-2003, 07:37 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
rsh is insecure (really !!!), but ....

rsh solution:

add host A to /etc/hosts.equiv on host B and vice versa
now you should be able to rsh from A to B and vice versa without password
( user XXX on host A can log on as user XXX on host B )
 
Old 11-02-2003, 08:59 PM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Quote:
Originally posted by AltF4
rsh is insecure (really !!!)..

yea, and so is allowing ssh without a password!! lol
 
Old 11-03-2003, 03:35 PM   #6
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
i'll swap 1 ssh session with required keys for 100 rsh sessions any day (security wise )

*G*
 
Old 11-04-2003, 09:14 PM   #7
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, im not really worried about security though :P
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant rsh without password dispite following howto's! SourCreamAndOni Linux - Software 2 08-09-2009 04:11 PM
rsh without password JurajPsycho Linux - Networking 4 08-03-2005 05:38 AM
what is rsh and ssh ztdep Linux - Networking 2 07-17-2005 05:28 AM
rsh help needed slice4e Linux - Networking 2 08-19-2003 12:55 PM
rsh without password Qex Linux - Security 3 08-09-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration