[Beowulf] passwordless rsh/ssh
Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.
David Mathog mathog at mendel.bio.caltech.eduWed Jun 22 15:59:08 PDT 2005
- Previous message: [Beowulf] passwordless rsh/ssh
- Next message: [Beowulf] passwordless rsh/ssh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Ok, on the local machine (the linux box), as user fred, can you > > rsh localhost uname No, that does not work, not for root either. However doing rsh machinename uname does work for either user. Note this was done on one of the target machines, the head node does not run rsh and so it could not be tested there. > > ? If you cannot, what are the permissions on your .rhosts file? > Should be 600. They are. > > Next, what are the contents? Hmm, nothing specific for root -> root for localhost. Added localhost root to /root/.rhosts and now "rsh localhost uname" works for that account. Oddly adding localhost to /etc/hosts.equiv did not have the same effect. Putting just localhost in ~fred/.rhosts did not get the rsh -l fred machinename uname #as root working, neither did adding localhost fred localhost root > > Finally, we want to look at the /etc/pam.d/rsh and /etc/pam.d/rlogin. > You should have a line in there which reads > > auth sufficient pam_rhosts_auth.so The two files are indentical and contain: auth required pam_nologin.so auth required pam_securetty.so auth required pam_env.so auth required pam_rhosts_auth.so account required pam_stack.so service=system-auth session required pam_stack.so service=system-auth That seems to be enough to login without a password from one same named account to another. Not good enough for rsh -l to work though. Thanks, David Mathog mathog at caltech.edu Manager, Sequence Analysis Facility, Biology Division, Caltech
- Previous message: [Beowulf] passwordless rsh/ssh
- Next message: [Beowulf] passwordless rsh/ssh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Beowulf mailing list
