{"id":47,"date":"2023-01-13T10:12:09","date_gmt":"2023-01-13T02:12:09","guid":{"rendered":"https:\/\/www.book2022.top\/?p=47"},"modified":"2023-01-13T10:12:09","modified_gmt":"2023-01-13T02:12:09","slug":"windows-%e9%80%9a%e8%bf%87ssh-%e8%bf%9e%e6%8e%a5ubuntu22-04","status":"publish","type":"post","link":"https:\/\/txt.book2020.top\/?p=47","title":{"rendered":"windows \u901a\u8fc7ssh \u8fde\u63a5ubuntu22.04"},"content":{"rendered":"\n<p><strong>1.\u66f4\u65b0\u6e90\u5217\u8868<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<p><strong>2.\u5b89\u88c5openssh-client<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install openssh-client<\/code><\/pre>\n\n\n\n<p><strong>3.\u5b89\u88c5openssh-server<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install openssh-server<\/code><\/pre>\n\n\n\n<p><strong>4.\u542f\u52a8ssh\u670d\u52a1<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service ssh start<\/code><\/pre>\n\n\n\n<p><strong>5.\u767b\u9646ssh\u670d\u52a1<\/strong>\uff0c\u5728windows\u7684\u7ec8\u7aef\uff08cmd\u547d\u4ee4\u884c\uff09<strong>win+r \u6253\u5f00\u8fd0\u884c\u7a97\u53e3 \u8f93\u5165cmd<\/strong><\/p>\n\n\n\n<p>\u5728cmd\u7a97\u53e3\u8f93\u5165ssh,\u683c\u5f0f\u5982\u4e0b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh username@ip<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -i \/\u8def\u5f84\/\u5bc6\u94a5 username@ip -p \u7aef\u53e3\u53f7<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u66f4\u65b0\u6e90\u5217\u8868 2.\u5b89\u88c5openssh-client 3.\u5b89\u88c5openssh-server 4.\u542f\u52a8ssh\u670d\u52a1&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":0,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/txt.book2020.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}