Howto automount an encrypted partition over ssh using key pair authentication
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
|