{"id":893,"date":"2015-10-30T08:18:59","date_gmt":"2015-10-30T04:18:59","guid":{"rendered":"http:\/\/netpoint-dc.com\/blog\/?p=893"},"modified":"2021-08-25T05:47:04","modified_gmt":"2021-08-25T01:47:04","slug":"auth-s-pomoshiy-modulya-pamauth-ssh-v-linux","status":"publish","type":"post","link":"https:\/\/netpoint-dc.com\/blog\/auth-s-pomoshiy-modulya-pamauth-ssh-v-linux\/","title":{"rendered":"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f Pam Auth SSH \u0432 Linux"},"content":{"rendered":"<p><a href=\"http:\/\/netpoint-dc.com\/blog\/wp-content\/uploads\/2015\/10\/7f676dc601544bdca2476be7cfe69888.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-895 size-large\" title=\"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c SSH \u0432 Linux\" src=\"http:\/\/netpoint-dc.com\/blog\/wp-content\/uploads\/2015\/10\/7f676dc601544bdca2476be7cfe69888-1024x400.png\" alt=\"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c SSH \u0432 Linux\" width=\"625\" height=\"244\" srcset=\"https:\/\/netpoint-dc.com\/blog\/wp-content\/uploads\/2015\/10\/7f676dc601544bdca2476be7cfe69888.png 1024w, https:\/\/netpoint-dc.com\/blog\/wp-content\/uploads\/2015\/10\/7f676dc601544bdca2476be7cfe69888-300x117.png 300w, https:\/\/netpoint-dc.com\/blog\/wp-content\/uploads\/2015\/10\/7f676dc601544bdca2476be7cfe69888-624x244.png 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0435\u0441\u044c \u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0442\u043e \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0430\u043c \u0432 Linux.<\/p>\n<ul>\n<li>\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0439\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0412\u0430\u0448\u0435\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0438 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439.<\/li>\n<li>\u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u0434\u0430\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0434\u0438\u0441\u043a\u0440\u0435\u0434\u0438\u0442\u0430\u0446\u0438\u044e.<\/li>\n<li>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 ssh-agent \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 \u0412\u0430\u0441.<\/li>\n<li>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u0442\u043e\u0432, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0442.\u0434.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p><strong>\u0422\u0438\u043f\u044b \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439<\/strong><\/p>\n<p align=\"justify\">\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u0412\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043e\u043f\u0446\u0438\u044e -t rsa. \u042d\u0442\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0422\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 rsa1, rsa \u0438\u043b\u0438 dsa. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u044f:<\/p>\n<table style=\"height: 474px;\" width=\"674\" cellspacing=\"1\" cellpadding=\"2\">\n<colgroup>\n<col width=\"42\" \/>\n<col width=\"73\" \/>\n<col width=\"142\" \/>\n<col width=\"138\" \/>\n<col width=\"215\" \/> <\/colgroup>\n<tbody>\n<tr>\n<td bgcolor=\"#ffffff\" width=\"42\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">\u0422\u0438\u043f<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"73\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"142\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">\u0418\u043c\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"138\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"215\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/span><\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\" width=\"42\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">RSA1<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"73\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">-t rsa1<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"142\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">identity<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"138\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">SSH 1 protocol only<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"215\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">1024 35 118118225938285&#8230;<\/span><\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\" width=\"42\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">RSA<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"73\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">-t rsa<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"142\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">id_rsa<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"138\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">SSH 2 protocol only<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"215\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">ssh-dss AAAAB3nzaC1kc3M&#8230;<\/span><\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\" width=\"42\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">DSA<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"73\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">-t dsa<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"142\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">id_dsa<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"138\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">SSH 2 protocol only<\/span><\/h5>\n<\/td>\n<td bgcolor=\"#ffffff\" width=\"215\">\n<h5 class=\"western\"><span style=\"font-size: medium;\">ssh-rsa AAAAB3NzaC1yc2E&#8230;<\/span><\/h5>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 Identity\/Pubkey \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 ssh-keygen . \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u044e\u0447\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>ssh-keygen -t rsa # \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f RSA<\/p>\n<pre>Generating public\/private rsa key pair.\r\nEnter file in which to save the key\r\n(\/home\/%username%\/.ssh\/id_rsa): Enter\r\nEnter passphrase (empty for no passphrase): \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \r\n\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u0430 \u043a\u043b\u044e\u0447\u0435\u0439\/\u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u043f\u0443\u0441\u0442\u044b\u043c, \u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \r\n\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043d\u0438\u0436\u0435.\r\nEnter same passphrase again: \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c.\r\nYour identification has been saved in\r\n\/home\/%username%\/.ssh\/id_rsa.\r\nYour public key has been saved in\r\n\/home\/%username%\/.ssh\/id_rsa.pub.\r\nThe key fingerprint is: 2c:3f:a4:be:46:23:47:19:f7:dc:74:9b:69:24:4a:44 %username%@mydesktop<\/pre>\n<pre>cd $HOME\/.ssh # \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043b\u044e\u0447\u0435\u0439\r\n<\/pre>\n<pre>ls -l\r\n\r\n\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435\r\n\r\ncat id_rsa\r\n\r\ncat id_rsa.pub\r\n<\/pre>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0432 OpenSSH \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/p>\n<pre>nano \/etc\/ssh\/sshd_config\r\n\r\nRSAAuthentication yes\r\n\r\nPubkeyAuthentication yes\r\n\r\nAuthorizedKeysFile %h\/.ssh\/authorized_keys\r\n<\/pre>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e Identity\/Pubkey \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 SSH \u0432\u0435\u0440\u0441\u0438\u0438 1 \u0438 2, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432 \u0444\u0430\u0439\u043b\u0435 $HOME\/.ssh\/authorized_keys.<br \/>\n\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 sshd_config (\u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/ssh\/), \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0438\u0441.<\/p>\n<pre>cd $HOME\/.ssh\r\nscp id_rsa.pub\r\nIP_ADDR_SERVER:\/home\/%username%\/.ssh\/id_rsa_myserver.pub\r\nroot@ssh-server's password: (enter password)<\/pre>\n<pre># \u0412\u043c\u0435\u0441\u0442\u043e %username% - \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u043c\u044f\r\n\u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/pre>\n<pre>cd \/home\/%username%\/.ssh\r\ncat id_rsa_myserver.pub &gt;&gt; authorized_keys<\/pre>\n<pre>cat authorized_keys\r\n\u0412\u044b\u0432\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442, \u0443 \u0432\u0430\u0441 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0441\u0432\u043e\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\u0431\u0443\u0434\u0435\u0442\r\nssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAcMJy5nn4ZNcD3L32b7y433Zh2IEAnPtaIsWf4POIKWR9DXiPgr1aGOTtBTgkqRQm4VBiYoEOlXiiOYKTpQ87aSdUXPipn2dqjGn7OfyxYA7oy7i9j7\/hYytkyMGx7ROxqD\/2WtzU2SZtjs74s\/PjxzyBMsrff5M09PsqNypoLLLZas= xahria@mydesktop<\/pre>\n<pre>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b,\r\n\u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u043e\u0433 \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\r\n\r\nchmod 600 authorized_keys<\/pre>\n<pre>\u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u0430  \r\n\r\nexit<\/pre>\n<p>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u043c: \u043c\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 RSA \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f scp (\u043c\u043e\u0436\u043d\u043e \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b authorized_keys, \u0435\u0441\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 .ssh \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u043c. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 RSA \u0432 \u0444\u0430\u0439\u043b authorized_keys. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u0443 \u043d\u0430\u0441 \u043f\u0430\u0440\u043e\u043b\u044c \u0444\u0430\u0439\u043b\u0430 \u043a\u043b\u044e\u0447\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438.<\/p>\n<pre>ssh IP_ADDR_SERVER<\/pre>\n<pre>Enter passphrase for key\r\n'\/home\/%username%\/.ssh\/id_rsa':<\/pre>\n<p>IP_ADDR_SERVER \u2014 IP \u0430\u0434\u0440\u0435\u0441 \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0437\u043d\u0430\u0447\u0438\u0442 \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0435\u0441\u044c \u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0442\u043e \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0430\u043c \u0432 Linux. \u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0439\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0412\u0430\u0448\u0435\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0438 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,17],"tags":[25,24,23,19,39,18,21,26,20,29],"class_list":["post-893","post","type-post","status-publish","format-standard","hentry","category-8","category-helpful-information","tag-dedicated-server","tag-howto","tag-vps","tag-vps-","tag-39","tag-18","tag-21","tag-26","tag--vps","tag-29"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/comments?post=893"}],"version-history":[{"count":3,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":898,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/posts\/893\/revisions\/898"}],"wp:attachment":[{"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/media?parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/categories?post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netpoint-dc.com\/blog\/wp-json\/wp\/v2\/tags?post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}