<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://wiki.gilug.org/index.php?action=history&amp;feed=atom&amp;title=How_to_unlock_LUKS_root_via_SSH</id>
	<title>How to unlock LUKS root via SSH - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gilug.org/index.php?action=history&amp;feed=atom&amp;title=How_to_unlock_LUKS_root_via_SSH"/>
	<link rel="alternate" type="text/html" href="https://wiki.gilug.org/index.php?title=How_to_unlock_LUKS_root_via_SSH&amp;action=history"/>
	<updated>2026-04-15T06:06:09Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://wiki.gilug.org/index.php?title=How_to_unlock_LUKS_root_via_SSH&amp;diff=134834&amp;oldid=prev</id>
		<title>Narcisgarcia a 10:53, 16 nov 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.gilug.org/index.php?title=How_to_unlock_LUKS_root_via_SSH&amp;diff=134834&amp;oldid=prev"/>
		<updated>2013-11-16T10:53:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 10:53, 16 nov 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Línia 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Instruction to give (with the example data) when the encrypted system waits for the passphrase (large line):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Instruction to give (with the example data) when the encrypted system waits for the passphrase (large line):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ssh -o &amp;quot;UserKnownHostsFile=/root/.ssh/known_hosts.initramfs&amp;quot; -i &amp;quot;/root/.ssh/encrypted.example.net_initramfs-rsa&amp;quot; root@encrypted.example.net &amp;quot;echo -ne \&amp;quot;1234\&amp;quot; &amp;gt;/lib/cryptsetup/passfifo ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ifconfig &lt;/del&gt;eth0 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;down &lt;/del&gt;&amp;amp;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ssh -o &amp;quot;UserKnownHostsFile=/root/.ssh/known_hosts.initramfs&amp;quot; -i &amp;quot;/root/.ssh/encrypted.example.net_initramfs-rsa&amp;quot; root@encrypted.example.net &amp;quot;echo -ne \&amp;quot;1234\&amp;quot; &amp;gt;/lib/cryptsetup/passfifo ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ip addr flush dev &lt;/ins&gt;eth0 &amp;amp;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(Example with password 1234, and that deconfigures the net of the encrypted system to not interferes in the normal system)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(Example with password 1234, and that deconfigures the net of the encrypted system to not interferes in the normal system)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other sources ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other sources ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt Kernel command line] (values for the network configuration)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt Kernel command line] (values for the network configuration)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key gilugwiki:diff::1.12:old-134828:rev-134834 --&gt;
&lt;/table&gt;</summary>
		<author><name>Narcisgarcia</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.gilug.org/index.php?title=How_to_unlock_LUKS_root_via_SSH&amp;diff=134828&amp;oldid=prev</id>
		<title>Narcisgarcia : First translation</title>
		<link rel="alternate" type="text/html" href="https://wiki.gilug.org/index.php?title=How_to_unlock_LUKS_root_via_SSH&amp;diff=134828&amp;oldid=prev"/>
		<updated>2013-10-10T13:01:27Z</updated>

		<summary type="html">&lt;p&gt;First translation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Com desbloquejar arrel LUKS per SSH|Català]] - [[Como desbloquear raiz LUKS por SSH|Castellano]] - [[How to unlock LUKS root via SSH|English]]&lt;br /&gt;
----&lt;br /&gt;
'''Introduction:''' This is a simple guide to give access to the net, to introduce the passphrase (password) in the boot of a system already encrypted including the root. In this way is not a requirement to go in person to write it with the keyboard.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* Tested with Debian GNU/Linux 7 (wheezy), but the method should work with older versions and other GNU distributions with Linux.&lt;br /&gt;
* It's important to consider that, having the kernel with the decrypter in a non-encrypted partition, is a weak point. The most secure method is to have ALL the hard disk encrypted, and then boot in person with an external memory (such as /boot in a pendrive) and, when having unlocked the system, take that memory with the software intact in our hands.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Prepare the remote LUKS unlocking ==&lt;br /&gt;
==== From the encrypted system ====&lt;br /&gt;
&lt;br /&gt;
* Install the software for the SSH service and Shell commands interpreter:&lt;br /&gt;
 apt-get install dropbear busybox&lt;br /&gt;
&lt;br /&gt;
* Configure the net to the kernel boot stage, setting this variable at the file '''/etc/default/grub'''&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;ip=192.168.1.33::192.168.1.1:255.255.255.0::eth0:none&amp;quot;&lt;br /&gt;
(Example for an IP address ''192.168.1.33'', gateway ''192.168.1.1'' and net device ''eth0'')&lt;br /&gt;
&lt;br /&gt;
* Update boot manager with the new data for the kernel:&lt;br /&gt;
 update-grub&lt;br /&gt;
&lt;br /&gt;
* Copy the special entry certificate to the remote computer, from which you will ask for unlocking:&lt;br /&gt;
 scp -P 22 /etc/initramfs-tools/root/.ssh/initramfs_rsa RemoteUser@RemoteComputer:/home/RemoteUser/encrypted.example.net_initramfs-rsa&lt;br /&gt;
(Example with ''RemoteUser'' of the IP ''RemoteComputer'' and labelling the server as ''encrypted.example.net'')&lt;br /&gt;
&lt;br /&gt;
==== In the remote system ====&lt;br /&gt;
(computer from where you want to send the unlocking command)&lt;br /&gt;
&lt;br /&gt;
* (optional) For security, move the certificate to the superuser profile (root):&lt;br /&gt;
 mkdir -p /root/.ssh&lt;br /&gt;
 mv ~/*_initramfs-rsa /root/.ssh/&lt;br /&gt;
&lt;br /&gt;
* Instruction to give (with the example data) when the encrypted system waits for the passphrase (large line):&lt;br /&gt;
 ssh -o &amp;quot;UserKnownHostsFile=/root/.ssh/known_hosts.initramfs&amp;quot; -i &amp;quot;/root/.ssh/encrypted.example.net_initramfs-rsa&amp;quot; root@encrypted.example.net &amp;quot;echo -ne \&amp;quot;1234\&amp;quot; &amp;gt;/lib/cryptsetup/passfifo ; ifconfig eth0 down &amp;amp;&amp;quot;&lt;br /&gt;
(Example with password 1234, and that deconfigures the net of the encrypted system to not interferes in the normal system)&lt;br /&gt;
&lt;br /&gt;
== Other sources ==&lt;br /&gt;
* [https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt Kernel command line] (values for the network configuration)&lt;/div&gt;</summary>
		<author><name>Narcisgarcia</name></author>
		
	</entry>
</feed>