All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Remote unlock security
@ 2010-12-20 19:05 David Jacquet
  2010-12-21  5:27 ` Arno Wagner
  0 siblings, 1 reply; 5+ messages in thread
From: David Jacquet @ 2010-12-20 19:05 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

Hi,

I am trying to configure my server to be able to be unlocked via ssh and
dropbear. From the README.gz
I understand that I can issue the command:

ssh -o "UserKnownHostsFile=~/.ssh/known_hosts.initramfs" \
-i "~/id_rsa.initramfs" root@initramfshost.example.com \
"echo -ne \"secret\" >/lib/cryptsetup/passfifo"

What exactly will happen with the "secret" string? Will it be written to an
unprotected part of a hard drive. If so
it may be retrieved by a careful investigation of that drive. From my non
expert and humble opinion, a key (as
the "secret") should only be stored on RAM (and erased even from the RAM as
soon as possible).

Even if only stored in the RAM, I guess that the "secret" string will be
stored in the .bash_history file on the
computer from which the ssh-command was issued. I guess it is more
recommended to log into the remote
computer and then issue ( cat > /lib/cryptsetup/passfifo --> "secret" -->
CTRL+D, will that work?)

Best Regards
David

[-- Attachment #2: Type: text/html, Size: 1573 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-21 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 19:05 [dm-crypt] Remote unlock security David Jacquet
2010-12-21  5:27 ` Arno Wagner
2010-12-21  6:04   ` epvdm
2010-12-21  9:27     ` David Jacquet
2010-12-21 13:02       ` Jonas Meurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.