Re: Key Management

From: Richard E. Silverman (slade@shore.net)
Date: 12/14/01


From: slade@shore.net (Richard E. Silverman)
Date: 14 Dec 2001 12:47:02 -0500


> > We are trying to implement a campus wide ssh installation here at work.
> > I am trying to find if there is any global key management(LDAP, NIS,
> > ...) that can be built into ssh to manage keys.
> >
> > Thanks.
> >
> > Chris
>
> You *shoudln't*. One of the principles of SSH key management, especially of
> the private key, is that it should never leave the user's hands. It
> definitely shouldn't be shared via any broadcast system such as LDAP or NIS
> designed to broadcast *public* information.

If every computer in the world were equipped with a smartcard reader and
all SSH clients could use them, we might come close to this (but even
then, there's nothing to prevent a Trojaned client from using your
smartcard to sign away your firstborn, as well as logging you in
somewhere). But they don't, and we make compromises -- just having your
private key file in your home directory instead is one. As long as the
distribution method is secured so as to resist disclosing the encrypted
private key for a dictionary attack, I wouldn't reject this idea out of
hand.

Besides, Chris didn't say anything about private keys specifically, and
"key management" can mean more than that. The SSH-2 protocol allows
attaching certificates to keys, and the ssh.com server implementation uses
this feature. With it, you can dispense with known-hosts files -- each
client can simply have a trusted copy of a CA certificate under which your
host key certificates are issued. Host keys can be added, changed,
expired (with CRL support) etc. transparently. Of course, this assumes
(currently) that all your clients are also ssh.com software -- but you can
allow other clients to go the traditional route by providing regular host
keys as well.

Another possibility is using GSSAPI/Kerberos with OpenSSH:

  http://www.sxw.org.uk/computing/patches/openssh.html

This also handles server authentication, taking advantage of your existing
Kerberos key management.

-- 
  Richard Silverman
  slade@shore.net



Relevant Pages

  • OpenSSH 3.7.1p2 With NIS+ Password Authentication Problem
    ... > only windows SSH clients (I've tried SecureCRT and SSH.com's SSH ... > authentication, it works, but it asks me TWICE ... Your Windows clients are using password authentication. ... But if you run NIS+ at security level 2 the user ...
    (SunManagers)
  • scponly+nis+konditional
    ... Ich habe einen Server auf den dürfen die User per scp mit ihren Daten ... Admins dürfen SCP und SSH. ... Dann habe ich viele Clients auf die dürfen die User mit scp und ssh. ... Wenn das serverseitige NIS als Standardshell /bin/scponly meldet dann ...
    (de.comp.os.unix.networking.misc)
  • Can I move the private key from one server to another?
    ... We need to replace a Redhat 7.2 server with a RH9 box. ... Hundreds of SSH ... clients connect to the old machine. ... Is there any way to transport the old private key from the old machine to ...
    (comp.security.ssh)
  • RE: Commentary on the seven words
    ... When I was an operating systems programmer we all too often forgot that the Operating system existed to support the application, not the other way around. ... A Because the application that we run uses a telnet client that doesn't support ssh - and that's why I can't run ssh on this system. ... I administrate one system that has 128 clients on it and it's ...
    (RedHat)
  • RE: TIPS FOR THE NEWCOMER
    ... using your old private key, so there's no point in keeping a backup. ... > security risk if I send this through e-mail as an attachment to the ssh ... > has been compromised it does not really matter since it is a public key ... > more words for the passphrase it gets harder to crack? ...
    (SSH)