Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh-agent - getting the private key.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sun Sep 19, 2004 12:56 am    Post subject: ssh-agent - getting the private key. Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum