Re: How to forbid unencrypted Keys?

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 03/21/05

  • Next message: Darren Tucker: "Re: Block IP"
    Date: 21 Mar 2005 04:37:05 GMT
    
    

    On 2005-03-20, Wolfgang <nobody@pappnas.de> wrote:
    > I wonder why the SSH-Protokol dont care for the client Keys.

    The SSH protocol was designed on the assumption that the two endpoints
    are trusted but that the network between then is untrusted.

    > My problem
    > ist, I am responsible for the security on a central server, on which a
    > lot of people use interactive login. I noticed serveral time, that due
    > to their ease or lack of understanding sometimes people use unencrypted
    > keys (and not ssh-agents). Because I am not able the scan the keys on
    > all clients I want to restrict access only to encrypted keys. Is there a
    > patch to openssh availible or any other ideas.

    No. The ssh server can't tell that the client is storing the keys
    unencrypted any more than /bin/login can tell that the user is writing
    their password on a sticky-note.

    > and furtheron the clients shouldnt use unencrypted keys on this server,
    > are there a tool out there to scan secret keys for encryption (yes I
    > have root ;-).

    You can attempt to read the private keys with openssl with a null
    passphrase. If the read succeeds (ie openssl returns zero) then the
    key is not encrypted, eg:

    $ openssl rsa -passin pass: -noout -in id_rsa 2>/dev/null && \
             echo unencrypted key

    This won't help for private keys stored on systems that you do not have
    access to.

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
        Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Darren Tucker: "Re: Block IP"

    Relevant Pages

    • Re: D3 b-tree problem
      ... Pushing a tool past the limits of what ... dates to gather the required keys. ... using D3's ability to see the spooler entries as a regular item. ... > I have a client who is experiencing some problems with SELECTs on a very ...
      (comp.databases.pick)
    • Re: Enterprose Manager after user password change
      ... XP client machines with a non-Domain account. ... > registered servers when the user's network password is changed. ... Saving the keys and restoring ... > password should be written to the registry. ...
      (microsoft.public.sqlserver.security)
    • Re: Client connect without host service running?
      ... Incoming clients cannot connect via ssh unless openssh is running. ... openssh caches the keys in memory... ... I went to the ssh client and compared the host ...
      (comp.security.ssh)
    • Re: Security. WPA?/-TKIP /-CCMP
      ... keys, encryption and decryption. ... that RADIUS is the way 802.11 offer client vs client protection. ... would be like we didn't offer guests wireless connection. ...
      (alt.internet.wireless)
    • Re: Best Practice: Table Primary Key
      ... Do not create keys on the client side and allow the database to solve ... Use MSDE on the client and work up replication between client and server. ... > Should I 'never use an AutoIncrement again'? ...
      (microsoft.public.dotnet.framework.adonet)