neuron Advocate


Joined: 28 May 2002 Posts: 2371
|
Posted: Sun Sep 19, 2004 12:56 am Post subject: ssh-agent - getting the private key. |
|
|
I'm working on a little script to use pam_ssh to login (which authenticates with ssh key and starts ssh-agent), to then use the private key with cryptsetup for encrypted homedirs.
But I can not for the life of me figure out how to get the private key from ssh-agent.
is there any way to do it?
the best way I suppose would be something like
Code: | cryptsetup -c aes -d `ssh-get-private-damn-key` -h sha512 -s 256 create `whoami` /mnt/encrypted/$USER.enc |
|
|