OpenSSH
[Top] [All Lists]

Re: ssh-decrypt

To: Pawel Krupinski <pak76_ml@yahoo.co.uk>
Subject: Re: ssh-decrypt
From: Jason <openssh@lakedaemon.net>
Date: Thu, 16 Nov 2006 10:10:50 -0500
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <20061116123309.49448.qmail@web23005.mail.ird.yahoo.com>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <20061116123309.49448.qmail@web23005.mail.ird.yahoo.com>
Reply-to: openssh@lakedaemon.net
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Thunderbird 1.5.0.8 (X11/20061109)
Pawel Krupinski wrote:
[snip]
> I'm using ssh agent currently just to manage my keys
> and practically they are used only to provide me with
> SSO to other ssh based systems. Why not use these keys
> (or a separate ssh key pair) to protect passwords to
> things such as database? 

TrueCrypt/dmcrypt volumes?

> To put it simple the way I see it is as follow. Your
> passwords (apart from your main ssh password) will be
> stored encrypted using your ssh public key. After
> logon, ssh-agent will be started and relevant key(s)
> added. When a script will require access to a
> password, it will:
> 1. Retrieve the data from somewhere (outside the
> scope);
> 2. Decrypt using the ssh utlity (ssh-decrypt(?)) -
> using ssh-agent or a file.
> 3. Provide credentials back to script. Or will create
> the establised connection to the database. Or
> …(anyway, I think it is outside the scope ;-)).
>  
> The bit that cannot be done currently is number 2 -
> OpenSSH doesn't provide ssh-decrypt functionality, but
> it is relatively easy to change it - I've played with
> OpenSSH 4.4/4.4p1 and it took me one evening (sorry -
> it was my first approach to OpenSSH as a developer
> ;-)) and 50 lines of code to implement it (based on
> the ssh-add tool using ssh-agent for decryption). In
> my solution, ssh-decrypt tool sends encrypted secret
> to the ssh-agent, which decrypts it (without sending
> any keys to the ssh-decrypt tool) and sends back just
> an error information or the plaintext password. 
[snip]

> If it is something of interest for you, I can do all
> the development and provide you with all the code.

Could you please email me the diff?

thx,

Jason.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>