{"id":64,"date":"2023-02-01T22:35:58","date_gmt":"2023-02-01T14:35:58","guid":{"rendered":"http:\/\/192.168.1.15:89\/?p=64"},"modified":"2023-03-19T21:21:33","modified_gmt":"2023-03-19T13:21:33","slug":"%e8%ae%b0%e6%96%b0ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.skyblogs.xyz\/index.php\/2023-02-01\/%e8%ae%b0%e6%96%b0ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae%e8%bf%87%e7%a8%8b\/","title":{"rendered":"\u8bb0\u65b0Ubuntu\u670d\u52a1\u5668\u7684\u521d\u59cb\u5316\u914d\u7f6e\u8fc7\u7a0b"},"content":{"rendered":"<h4>\u524d\u8a00<\/h4>\n<p>\u4eca\u65e5\u5bb6\u4e2d\u65b0\u5230\u4e86\u4e00\u53f0\u6234\u5c14\u670d\u52a1\u5668,\u539f\u672c\u6309\u7167\u9884\u60f3,\u6253\u7b97\u7ed9\u670d\u52a1\u5668\u88c5\u4e0a\u4e00\u4e2aUbuntu 22.04LTS,\u4f46\u662f\u56e0\u4f9d\u8d56\u95ee\u9898\u88ab\u8feb\u91cd\u88c5,\u56e0\u6b64\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u8be6\u7ec6\u8fc7\u7a0b,\u7ed9\u81ea\u5df1\u7559\u4e2a\u5907\u4efd.<\/p>\n<h3>root\u8d26\u53f7\u5bc6\u7801\u8bbe\u7f6e<\/h3>\n<p>\u6253\u5f00\u7ec8\u7aef,\u5e76\u8f93\u5165<code>sudo passwd root<\/code>\u6765\u8bbe\u7f6eroot\u5bc6\u7801<\/p>\n<h3>\u66f4\u6362apt\u955c\u50cf\u6e05\u534e\u6e90<\/h3>\n<p><pre class=\"prettyprint linenums\">sudo sed -i &#8220;s@http:\/\/.*archive.ubuntu.com@https:\/\/mirrors.tuna.tsinghua.edu.cn@g&#8221; \/etc\/apt\/sources.list<br \/>\nsudo sed -i &#8220;s@http:\/\/.*security.ubuntu.com@https:\/\/mirrors.tuna.tsinghua.edu.cn@g&#8221; \/etc\/apt\/sources.list<br \/>\napt update<br \/>\napt upgrade<\/pre><br \/>\n\u7136\u540e\u518d\u5b89\u88c5\u4e00\u4e9b\u57fa\u7840\u63d2\u4ef6<code>apt install vim neofetch curl<\/code><\/p>\n<h3>\u914d\u7f6essh\u7aef\u53e3\u53ca\u5bc6\u7801<\/h3>\n<p>\u5148\u6267\u884c<code>apt install openssh-server<\/code>\u6765\u5b89\u88c5ssh,\u63a5\u7740\u901a\u8fc7<code>vim \/etc\/ssh\/sshd_config<\/code>\u6765\u7f16\u8f91ssh\u914d\u7f6e\u6587\u4ef6<br \/>\n<pre class=\"prettyprint linenums\">\u5148\u6309i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<br \/>\nPort 22 #\u627e\u5230\u8fd9\u4e00\u884c\u5e76\u5220\u9664\u6700\u524d\u9762\u7684#\u53f7<br \/>\nPermitRootLogin no#\u627e\u5230PermitRootLogin\u8fd9\u4e00\u884c,\u5220\u9664#,\u540c\u65f6\u5c06\u540e\u9762\u6539\u4e3ayes<br \/>\nPasswordAuthentication yes #\u540c\u6837\u5220\u9664\u524d\u9762\u7684\u6ce8\u91ca<br \/>\n<\/pre><br \/>\n\u6700\u540e\u6309esc,\u518d\u8f93\u5165:wq\u9000\u51fa\u5e76\u4fdd\u5b58<br \/>\n\u4e4b\u540e\u91cd\u542fssh\u670d\u52a1<code>systemctl restart ssh<\/code><br \/>\n\u8bbe\u7f6essh\u5f00\u673a\u81ea\u542f<code>systemctl enable ssh<\/code><br \/>\n\u6b64\u65f6\u91cd\u542f,\u670d\u52a1\u5668\u5e94\u8be5\u5c31\u80fd\u901a\u8fc7ssh\u8fde\u63a5\u4e86(\u5982\u679c\u8fde\u4e0d\u4e0a\u8bf7\u68c0\u67e5\u4f60\u7684\u8fd0\u8425\u5546\u6216\u4e3b\u673a\u9632\u706b\u5899\u8bbe\u7f6e)<br \/>\n\u57fa\u7840\u914d\u7f6e\u73af\u8282\u5230\u6b64\u7ed3\u675f,web\u73af\u5883\u642d\u5efa\u90e8\u5206\u4e0b\u6b21\u518d\u8bb2\u5427~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u4eca\u65e5\u5bb6\u4e2d\u65b0\u5230\u4e86\u4e00\u53f0\u6234\u5c14\u670d\u52a1\u5668,\u539f\u672c\u6309\u7167\u9884\u60f3,\u6253\u7b97\u7ed9\u670d\u52a1\u5668\u88c5\u4e0a\u4e00\u4e2aUbuntu 22.04LTS,\u4f46\u662f\u56e0\u4f9d\u8d56\u95ee\u9898\u88ab\u8feb\u91cd\u88c5,\u56e0\u6b64\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u8be6\u7ec6\u8fc7\u7a0b,\u7ed9\u81ea\u5df1\u7559\u4e2a\u5907\u4efd. root\u8d26\u53f7\u5bc6\u7801\u8bbe\u7f6e \u6253\u5f00\u7ec8\u7aef,\u5e76\u8f93\u5165sudo passwd root\u6765\u8bbe\u7f6eroot\u5bc6\u7801 \u66f4\u6362apt\u955c\u50cf\u6e05\u534e\u6e90 \u7136\u540e\u518d\u5b89\u88c5\u4e00\u4e9b\u57fa\u7840\u63d2\u4ef6apt install vim neofetch curl \u914d\u7f6essh\u7aef\u53e3\u53ca\u5bc6\u7801 \u5148\u6267\u884capt  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[6],"tags":[17,16,18],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-teck-discussion","tag-ssh","tag-ubuntu","tag-18"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":6,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyblogs.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}