{"id":273031,"date":"2016-01-27T16:18:02","date_gmt":"2016-01-27T13:18:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=273031"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=273031","title":{"rendered":"ssh: \u0412\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0447\u0443\u0436\u043e\u0439 \u043f\u043e\u0440\u0442 \u0438\u0437-\u0437\u0430 NAT"},"content":{"rendered":"<br \/>\n<h4><font color=\"#999092\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0437\u0430&nbsp;NAT, \u0438\u043c\u0435\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0440\u044f\u0434\u043e\u043c \u0441&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0433\u043e ssh, \u0438&nbsp;\u0431\u0435\u043b\u044b\u0439&nbsp;ip \u0443&nbsp;\u0441\u0435\u0431\u044f.<br \/>  <\/font><\/h4>\n<p><img decoding=\"async\" width=\"67%\" src=\"https:\/\/habrastorage.org\/files\/16d\/526\/e28\/16d526e28f544abcbda706df72cad813.png\"\/><br \/>  <font color=\"#808080\">\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 ssh -R &copy; erik, <a href=\"http:\/\/unix.stackexchange.com\/a\/118650\">unix.stackexchange.com<\/a><\/font><\/p>\n<h1>\u041e\u043f\u0446\u0438\u044f -R<\/h1>\n<p>  \u0412 ssh \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0440\u0442 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438, \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043e\u0442&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043e&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432&nbsp;\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439&nbsp;\u0430\u0434\u0440\u0435\u0441 \u0432&nbsp;\u0441\u0435\u0442\u0438&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c sshd, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c<\/p>\n<pre>$ ssh -N -R server_port:target:target_port sshd_server<\/pre>\n<p>  \u0418 \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 sshd \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u0442 server_port, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432&nbsp;target:target_port \u0432&nbsp;\u0441\u0435\u0442\u0438&nbsp;\u044d\u0442\u043e\u0433\u043e&nbsp;\u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430.<\/p>\n<h1>\u041a\u0430\u043a \u0432 sshd_config \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430<\/h1>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h5><font color=\"#78a2b7\"><\/p>\n<pre>ForceCommand echo &quot;no shell access is given&quot;<\/pre>\n<p><\/font><\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0446\u0438\u044e, \u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0437\u0430\u043c\u0435\u0441\u0442\u043e \u043b\u044e\u0431\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c (\u043e\u0431\u044b\u0447\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0448\u0435\u043b\u043b).<br \/>  \u0422\u0430\u043a \u043a\u0430\u043a scp \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 [\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e] \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sftp, \u0442\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0442\u043e\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442\u043e.<\/p>\n<p>  \u0422\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0438\u043d\u0433) \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0441\u0435 \u0435\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h5><font color=\"#78a2b7\"><\/p>\n<pre>AllowTcpForwarding remote<\/pre>\n<p><\/font><\/h5>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0440\u0435\u0436\u0438\u043c\u044b \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f tcp:<\/p>\n<ul>\n<li><strong>local<\/strong> (\u043e\u043f\u0446\u0438\u044f -L \u0432 ssh) \u2014 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0440\u0442 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0430\u0434\u0440\u0435\u0441 \u0432 \u0441\u0435\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/li>\n<li><strong>remote<\/strong> (\u043e\u043f\u0446\u0438\u044f -R) \u2014 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0440\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0430\u0434\u0440\u0435\u0441 \u0432 \u0435\u0433\u043e \u0441\u0435\u0442\u0438<\/li>\n<li><strong>all<\/strong> \u0438\u043b\u0438 <strong>yes<\/strong> \u2014 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0438 local, \u0438 remote<\/li>\n<li><strong>no<\/strong> \u2014 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 tcp \u0442\u0443\u043d\u043d\u0435\u043b\u0438<\/li>\n<\/ul>\n<p>  <\/p>\n<h5><font color=\"#78a2b7\"><\/p>\n<pre>Match<\/pre>\n<p><\/font><\/h5>\n<p>  \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432&nbsp;\u0441\u0435\u043a\u0446\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <i>Match User tunnel<\/i>, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0449\u0438\u0445\u0441\u044f \u043f\u043e\u0434&nbsp;\u0438\u043c\u0435\u043d\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. (ssh\u2026 tunnel@sshd_server)<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 sshd_config \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f tunnel<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre>Match User tunnel     ForceCommand echo &quot;no shell access is given&quot;     AllowTcpForwarding remote     # \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0438\u043d\u0430\u0447\u0435:     X11Forwarding no     PermitTunnel no<\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b\u043e&nbsp;\u0431\u044b \u0445\u043e\u0440\u043e\u0448\u043e \u0435\u0449\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u043e\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u043e&nbsp;\u0431\u0435\u0437&nbsp;\u043f\u0430\u0442\u0447\u0435\u0439 \u043a&nbsp;sshd \u044d\u0442\u043e\u0433\u043e <a href=\"http:\/\/serverfault.com\/a\/403584\">\u043d\u0435&nbsp;\u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/a>.<\/p>\n<h1>\u0423\u0434\u043e\u0431\u043d\u0435\u0435 \u0438 \u0431\u0435\u0437 root-\u0430<\/h1>\n<p>  \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 \u0434\u0443\u0445\u0435 netcat: \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 sshd, \u043d\u0435&nbsp;\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043d\u0435&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u043e\u0432.<\/p>\n<p>  sshd \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0431\u0435\u0437 \u0440\u0443\u0442\u0430, \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0446\u0438\u0439. (\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u043d \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d). \u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 HostKey \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 PidFile.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c (\u0430 \u043c\u044b \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f) \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b\u0438\u043a \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f sshd \u0443\u0434\u043e\u0431\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0431\u0435\u0437 \u0434\u0435\u043c\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0441 \u043b\u043e\u0433\u043e\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0435\u0434\u0438\u0442\u044c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0442\u0443\u043d\u043d\u0435\u043b\u0438.<\/p>\n<p>  \u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442: <a href=\"https:\/\/gist.github.com\/ripper\/5931fd5273226d6bf3d3\">\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e sshd, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439<\/a>.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/249515\/\"> https:\/\/habrahabr.ru\/post\/249515\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4><font color=\"#999092\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0437\u0430&nbsp;NAT, \u0438\u043c\u0435\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0440\u044f\u0434\u043e\u043c \u0441&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0433\u043e ssh, \u0438&nbsp;\u0431\u0435\u043b\u044b\u0439&nbsp;ip \u0443&nbsp;\u0441\u0435\u0431\u044f.<br \/>  <\/font><\/h4>\n<p><img decoding=\"async\" width=\"67%\" src=\"https:\/\/habrastorage.org\/files\/16d\/526\/e28\/16d526e28f544abcbda706df72cad813.png\"\/><br \/>  <font color=\"#808080\">\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 ssh -R &copy; erik, <a href=\"http:\/\/unix.stackexchange.com\/a\/118650\">unix.stackexchange.com<\/a><\/font><\/p>\n<h1>\u041e\u043f\u0446\u0438\u044f -R<\/h1>\n<p>  \u0412 ssh \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c, \u0432&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0440\u0442 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438, \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043e\u0442&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043e&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432&nbsp;\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439&nbsp;\u0430\u0434\u0440\u0435\u0441 \u0432&nbsp;\u0441\u0435\u0442\u0438&nbsp;\u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c sshd, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c<\/p>\n<pre>$ ssh -N -R server_port:target:target_port sshd_server<\/pre>\n<p>  \u0418 \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 sshd \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u0442 server_port, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432&nbsp;target:target_port \u0432&nbsp;\u0441\u0435\u0442\u0438&nbsp;\u044d\u0442\u043e\u0433\u043e&nbsp;\u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430.<\/p>\n<h1>\u041a\u0430\u043a \u0432 sshd_config \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430<\/h1>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-273031","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273031"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273031\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}