LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-04-2011, 04:18 AM   #1
DutchNyko
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
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
 
Old 11-04-2011, 09:09 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I use encfs (available in most distributions) for this identical scenario. This allows me to rsync the encrypted files, without needing to decrypt them.
 
Old 11-05-2011, 02:26 AM   #3
DutchNyko
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
macemoneta,

That's even better. That way there is no decrypted data on the backup server which is pretty secure in my opinion. On the backup server i do not need the decrypted data so i am happy.

Thank you very much.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
Automount encrypted Windows partition (truecrypt) piratesmack Slackware 2 01-13-2010 11:38 PM
SSH public key authentication Jeroen1000 Linux - Security 12 09-07-2009 04:14 AM
ssh Key pair whoes Red Squirrel Linux - Security 2 08-17-2008 08:12 PM
DISCUSSION: Forward ports via an SSH tunnel with auto reconnect (using key pair authentication) merize147 LinuxAnswers Discussion 0 07-24-2006 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration