{"id":299,"date":"2022-12-26T13:23:46","date_gmt":"2022-12-26T10:23:46","guid":{"rendered":"https:\/\/kaan.org.ru\/blog\/?p=299"},"modified":"2026-02-26T23:11:50","modified_gmt":"2026-02-26T20:11:50","slug":"kak-dobavit-vozmozhnost-udalennoj-razblokirovki-zashifrovannogo-razdela","status":"publish","type":"post","link":"https:\/\/kaan.org.ru\/blog\/2022\/12\/26\/kak-dobavit-vozmozhnost-udalennoj-razblokirovki-zashifrovannogo-razdela\/","title":{"rendered":"\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041c\u0430\u0448\u0438\u043d\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041e\u0421<\/li>\n\n\n\n<li>\u0423\u043c\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0432 GRUB \u0438 \u043d\u0430 DHCP-\u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <\/h4>\n\n\n\n<p>\u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u041e\u0431\u0437\u043e\u0440 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 <\/h4>\n\n\n\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u042f\u0434\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0437 initramfs, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430.<\/p>\n\n\n\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 initramfs \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 (\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c) \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c. \u041f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b\u0431\u043e\u0440 \u0441\u0434\u0435\u043b\u0430\u043d \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 dropbear \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441 busybox \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u0428\u0430\u0433\u0438 \u043d\u0438\u0436\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 root. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0430 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0432\u0430\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n<\/blockquote>\n\n\n\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 dropbear.<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>apt update\napt upgrade\napt install dropbear-initramfs<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435, \u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e \u043f\u043e\u0437\u0436\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>dropbear: WARNING: Invalid authorized_keys file, remote unlocking of cryptroot via SSH won\u2019t work!<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">dss<\/mark>, <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">rsa<\/mark> \u0438 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">ecdsa<\/mark> \u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0430. \u041e\u043d\u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">\/etc\/dropbear-initramfs<\/mark>.<\/p>\n\n\n\n<p>\u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u043d\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 \u0445\u043e\u0441\u0442\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">dropbear-initramfs<\/mark>. \u0412\u0435\u0434\u044c \u0447\u0442\u043e\u0431\u044b \u043a\u043b\u044e\u0447\u0438 \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b. \u042d\u0442\u043e \u0436\u0435 \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u0438 \u0434\u043b\u044f initramfs \u0432 \u0446\u0435\u043b\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u044f\u0434\u0440\u0443 \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e, \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c root, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u044f <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">dropbear-initramfs<\/mark> (\u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b boot \u0442\u043e\u0436\u0435 \u043d\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d, \u043d\u043e \u044d\u0442\u043e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043b\u0438\u0448\u0438\u0442 \u043d\u0430\u0448 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435 \u0441\u043c\u044b\u0441\u043b\u0430).<\/p>\n\n\n\n<p>\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f Dropbear \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0442\u0430\u043a\u0438 Man-in-the-middle. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043b\u044e\u0447\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 (\u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043b\u0443\u0447\u0448\u0438\u0439) \u043f\u0443\u0442\u044c \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e &#8212; \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c Dropbear \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u043e\u0440\u0442\u0443.<\/p>\n\n\n\n<p>\u0424\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">dropbear-initramfs<\/mark> \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 <mark style=\"background-color:#F6F6F6;color:#138189\" class=\"has-inline-color\">\/etc\/dropbear-initramfs\/config<\/mark> \u0438\u043b\u0438 <mark style=\"background-color:#F6F6F6;color:#138189\" class=\"has-inline-color\">\/etc\/dropbear\/initramfs\/dropbear.conf<\/mark>.<\/p>\n\n\n\n<p>\u041f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u043c \u0432\u044b\u0448\u0435, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u0442. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u0430\u0442\u0430\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0435\u0434\u044c \u0444\u0430\u0439\u0440\u0432\u043e\u043b \u0432 initramfs \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. <\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0442 <mark style=\"background-color:#F6F6F6;color:#138189\" class=\"has-inline-color\">4546<\/mark> \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0432\u0448\u0438\u0439\u0441\u044f \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>DROPBEAR_OPTIONS=\"-p 4546\"<\/code><\/pre>\n\n\n\n<p>\u0414\u043b\u044f \u0434\u0443\u0448\u0435\u0432\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 <mark style=\"background-color:#F6F6F6;color:#138189\" class=\"has-inline-color\">-s -j -k -I 60<\/mark>. \u0412\u0441\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0432 <mark style=\"background-color:#F6F6F6;color:#138189\" class=\"has-inline-color\">man dropbear<\/mark>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e SSH<\/h5>\n\n\n\n<p>\u0412 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">dropbear-initramfs<\/mark> \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u0432\u0445\u043e\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0432\u043e\u0439\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043a\u043b\u044e\u0447\u0443. \u041f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">\/etc\/dropbear-initramfs\/authorized_keys<\/mark> \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443. <\/p>\n\n\n\n<p>\u0420\u0430\u0437\u0443\u043c\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 authorized_keys \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>no-port-forwarding,no-agent-forwarding,no-x11-forwarding,command=\"cryptroot-unlock\" ssh-rsa &lt;key&gt;<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c initramfs: <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">update-initramfs -u<\/mark>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 IP-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430<\/h4>\n\n\n\n<p>\u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u044f\u0434\u0440\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b IP.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u0430<\/h5>\n\n\n\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044f\u0434\u0440\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044e IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e DHCP (<mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">ip=dhcp<\/mark>). \u041a\u0440\u0430\u0439\u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0430\u0440\u0435\u043d\u0434\u0443 \u043d\u0430 DHCP-\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441. \u042d\u0442\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442 \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c IP-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u044f\u0434\u0440\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435: <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">ip=&lt;client-ip&gt;::&lt;gw-ip&gt;:&lt;netmask&gt;<\/mark> \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">GRUB_CMDLINE_LINUX_DEFAULT<\/mark> \u0432 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">\/etc\/default\/grub<\/mark>. \u0418 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 GRUB: <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">update-grub<\/mark>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u044f\u0434\u0440\u043e\u043c initramfs \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0442\u0438. Dropbear \u0432\u0441\u043a\u043e\u0440\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u043e\u0436\u0438\u0434\u0430\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. <\/p>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a Dropbear \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e: <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">ssh -p 4546 root@server-ip<\/mark> \u0438\u043b\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>ssh -o \"HostKeyAlgorithms ssh-rsa\" -p 4546&nbsp;root@server-ip<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u0432 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 busybox:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-tertiary-background-color has-text-color has-background\"><code>To unlock root partition, and maybe others like swap, run `cryptroot-unlock` \n\n\nBusyBox v1.30.1 (Ubuntu 1:1.27.2-2ubuntu3) built-in shell (ash) Enter 'help' for a list of built-in commands. \n\n#<\/code><\/pre>\n\n\n\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 <mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-primary-color\">cryptroot-unlock<\/mark> \u044d\u0442\u043e \u0432\u0441\u0451 \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0430\u0441 \u043e\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041e\u0431\u0437\u043e\u0440 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u042f\u0434\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0437 initramfs, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 initramfs \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 (\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c) \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c. \u041f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b\u0431\u043e\u0440 \u0441\u0434\u0435\u043b\u0430\u043d \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 dropbear \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 SSH-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-nerazobrannoe","category-8"],"_links":{"self":[{"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":10,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaan.org.ru\/blog\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}