Using a pogoplug with archlinux i am creating a backup server for my data. What i would like to do is put the server on a other site and backup over the internet using ssh and rsync.

On the backup server i created a encrypted patition using Luks for my data. Now i need to automaticaly mount the encrypted partition when i logon using ssh. This is working with pam_mount. But for pam_mount the password of the user on the backup server (also used by ssh) needs to be the same as the passphrase of the encrypted disk. But i would like to cron a backup script, so entering a password when executing the script is not an option.

Connecting using ssh with public/private key authentication the password is not entered when connecting so pam_mount cannot mount the encrypted disk :-(

How can i use key pair authentication and automount an encrypted disk ?

Best regards,

Nyko

link|improve this question
I am using a similar setup with the data on a iSCSI server. What about doing a backup of the encrypted container? Well, it doesn't compress very well, but might be an option if it's not too big. – halo Nov 4 '11 at 8:47
feedback

migrated from stackoverflow.com Nov 4 '11 at 16:50

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown