From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id giLQcVXfkMTI for ; Mon, 1 Jul 2013 01:57:01 +0200 (CEST) Received: from v6.tansi.org (unknown [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 1 Jul 2013 01:57:01 +0200 (CEST) Received: from gatewagner.dyndns.org (84-74-164-92.dclient.hispeed.ch [84.74.164.92]) by v6.tansi.org (Postfix) with ESMTPA id B9CF320DC253 for ; Mon, 1 Jul 2013 01:57:00 +0200 (CEST) Date: Mon, 1 Jul 2013 01:57:00 +0200 From: Arno Wagner Message-ID: <20130630235659.GA4928@tansi.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] passkey over network List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Sun, Jun 30, 2013 at 07:24:46PM -0300, Roberto Spadim wrote: > Hi guys, i want to create a map to my crypted disk > but, instead of putting the passkey every time, or using a pkcs11 (smart > card), i want to get the passkey from a external server via network > in other words: > > 1)place a new hard disk > 2)setup dm-crypt over disk > 3) mount disk using a external server like " > https://www.host.com/get_passkey.php?UUID=xxxxx" That looks overly complicated. Why not use something like ssh "cat uuid_file_xxxx" | cryptsetup ... with a password-less ssh setup. Or improve it, use the UUID as user-name and make "cat " the login-shell. Then you just need ssh