tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: ssh and TruCluster
@ 2000-06-16 17:07 lynn
  0 siblings, 0 replies; only message in thread
From: lynn @ 2000-06-16 17:07 UTC (permalink / raw)
  To: tru64-unix-managers


I received considerable help from a few people.  I have collected the
suggestions below.  The solution appeared to be that the setuid bit
was not turned on for ssh1 on the remote machine.

Original Question:
=================

I have a user that is trying to slogin to the cluster from the cluster,
but it keeps asking for his passwd.  His .shosts file contains the names
of all the cluster members and the cluster alias.  He says he needs this
behavior to work in order to use his CVS (Control Version Swr) tree.

Does anyone have any ideas on this matter?
Thanks,
Lynn Bogovich
lynn@stsci.edu

Response 1:
===========
Lynn-

Are you using ssh-1.2.X or are using ssh-2.X or openssh ?

Does your /etc/ssh/sshd_config (or /etc/sshd_config) honor .shosts
authentication?  One alternative is for the user to set up an RSA
identity key and use ssh-agent.

Check your sshd_config file for things that will disallow .shosts
authentication:

IgnoreRhosts yes

or

DenySHosts or similar


I highly recommend the use of ssh-agent ... very convenient.

Here are some directions that I wrote up for a user (NOTE: we only
use xdm and csh (really tcsh), so if you are CDE shop and use ksh,
you'll need to poke around to add this to the users login scripts
or whatever):

On your remote machine:
0) cd ~/.ssh
1) ssh-keygen

the session will look something like:

% ssh-keygen
Initializing random number generator...
Generating p:  ...++ (distance 94)
Generating q:  .......................................++ (distance 596)
Computing the keys...
Testing the keys...
Key generation complete.
Enter file in which to save the key (/path/to/user/.ssh/identity): 

(NOTE: passphrase should be something reasonable ... you will only
       need to type it once when you log in ... make it real!)

Enter passphrase: 
Enter the same passphrase again:

Your identification has been saved in /path/to/user/.ssh/identity.
Your public key is:
1024 37 1040.... user@remote
Your public key has been saved in /path/to/user/.ssh/identity.pub

2) cp identity.pub authorized_keys
3) scp authorized_keys cluster:.ssh
4) ssh-agent
5) ssh-add

(it will ask you for your passphase that you set above)

6) scp identity* cluster:.ssh

(did it ask for your password?)

That's cool... but this is where the truly wondeful thing
happens... if we make your entire xsession a decendent of
ssh-agent, you will only need to enter your passphrase once
when you log onto the machine ...

7) cd
8) cp .xsession .xsession-real
9) make .xsession only contain:

Here is an example .xsession file for use with ssh-agent:

#!/bin/csh
#
# This is to set up ssh fun and games
set path = (/usr/bin /usr/local/bin)

ssh-agent csh ${HOME}/.xsession-real

9) add following lines to the top of .xsession-real

#
# Set up SSH business
# - this will add ~/.ssh/identity at start of X session
if ( -e /usr/local/bin/ssh-add1 || -e /usr/bin/ssh-add1 ) then
   ssh-add1 </dev/null
endif

-----------------------------------------------------------------------
Sean O'Connell                                Email: sean@stat.Duke.EDU
Institute of Statistics and Decision Sciences Phone: (919) 684-5419
Duke University                               Fax:   (919) 684-8594


Lynn Bogovich stated:
> > 
> > Are you using ssh-1.2.X or are using ssh-2.X or openssh ?
> > 
> ssh-1.2.26

OK... then the recipe that I gave should work depending on the
nature of the account.

> > use xdm and csh (really tcsh), so if you are CDE shop and use ksh,
> > you'll need to poke around to add this to the users login scripts
> > or whatever):
> > 
> 
> I have passed on your email to the user to see if it works by using this
> method.  Hopefully we can get this straightened out soon.

The other trick is to add an entry for his client machine in
/etc/ssh_known_hosts  (there is a nifty little script called
make-ssh-known-hosts and all you do is run it against your
domain...

make-ssh-known-hosts stsci.edu > /tmp/known_hosts

and then once you have a good copy

mv /tmp/known_hosts /etc/ssh_known_hosts 

S

=============================================
Response 2:
===========

From: John P Speno <speno@isc.upenn.edu>
To: Lynn Bogovich <lynn@stsci.edu>
Subject: Re: ssh and TruCluster


I don't know why it's not working, but you can run the sshd with -d or the
ssh client with -v to see some helpful output.

Also, the user might have better luck using RSAauthentication instead of
the .shosts thing. 

-----------------------------------
On Thu, Jun 15, 2000 at 02:44:05PM -0400, Lynn Bogovich wrote:
> Here is the output the user gets.  I guess the culprit is the "No agent" line
> near the bottom.  I have no idea what this means or how to fix it.  Can you
> help me with this?

No, it's not the "No agent" line. That only tells you that the user isn't running
a local authentication agent. It doesn't mean there is a problem.

What happens after the user puts in their password?

And you mentioned .shosts before. Is your sshd configured to allow
that kind of authentication? It's the IgnoreRhosts line in sshd_config.

Also, there's a 1.2.27 version of that SSH software.
------------------------

> Maybe there is another entry that is incorrect in the above file.

It looks okay to me. Better check the output from sshd -d and/or syslog
entries for sshd on the server.

And check the permissions and content of the .shosts file to make sure
things are correct.

N.B. This was the one that got me checking the actual executable perms!!!!!!

=============================================
Response 3:
===========

Lynn,

    Have the user login using "ssh -v" and capture the debugging
information.  You should get some idea of what is happening from that.

Good luck!
Jay
---
Jay Leafey
Memphis, TN
jay.leafey@mindless.com


=============================================
Response 4:
===========


Use the -v option of ssh to find the cause. (This is often something like
permissions on the home directory, and ssh -v will tell you about it.)

Regards, Hans

-- 
Hans Ranke                                          Hans.Ranke@ei.tum.de
Lehrstuhl fuer                                             Institute for
Entwurfsautomatisierung                     Electronic Design Automation
              Technische Universitaet Muenchen, Germany                

------------------------------

Hi Lynn,

> Hi Hans,
> 
> Here is the output the user gets.  I guess the culprit is the "No agent" line
> near the bottom.  

That line refers to the ssh-agent program. But that should not be necessary
to do .shosts-based authentification.


=============================================
Response 5:
===========

Not that I've done this before, but it should work.  Usually
when this does not work, it's a problem with the domain name
server.  Make sure that all three names (two nodes and alias)
have both normal (name to numer) and inverse (number to name)
DNS records.  Test all six of these from both cluster side and
client side.  Also make sure cluster can do both normal and
inverse translation for the client's name.

-- 
Dave Cherkus ------- UniMaster, Inc. ------ Contract Software Development
Specialties: UNIX Internals/Kernel TCP/IP Alpha Clusters Performance ISDN
Email: cherkus@UniMaster.COM ------- When you lose, don't lose the lesson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-16 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-16 17:07 SUMMARY: ssh and TruCluster lynn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox