{"id":865,"date":"2020-07-12T14:18:02","date_gmt":"2020-07-12T14:18:02","guid":{"rendered":"http:\/\/192.168.1.112\/?p=865"},"modified":"2020-09-05T20:59:51","modified_gmt":"2020-09-05T12:59:51","slug":"bitnami-%e5%bc%80%e9%80%9assh","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=865","title":{"rendered":"\u5982\u4f55\u8ba9 Bitnami(VirtualBox\u7248)\u5f00\u901aSSH"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Enable Or Disable The SSH Server<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-the-ssh-server\">Enable The SSH Server<\/h3>\n\n\n\n<p>The SSH server is disabled by default in Bitnami virtual machines. However, some applications (like GitLab) require SSH access to import code repositories.\u7cfb\u7edf\u9ed8\u8ba4\u5173\u95ed\u865a\u62df\u673a\u7684ssh\uff0c\u4f46\u662f\u6709\u4e9b\u670d\u52a1\u53c8\u5fc5\u987b\u901a\u8fc7SSH\u8fdb\u5165\u7cfb\u7edf\u53bb\u4fee\u6539\u4ee3\u7801\u7684\u6e90\uff08\u6bd4\u5982Gitlab)<\/p>\n\n\n\n<p>To enable the SSH server, execute the commands below at the server console \u5728\u670d\u52a1\u5668\u754c\u9762\u6267\u884c\u5982\u4e0b\u6307\u4ee4\u6765\u5f00\u542fSSH:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>IMPORTANT: Before enabling the SSH server,\u00a0<a href=\"https:\/\/docs.bitnami.com\/virtual-machine\/faq\/configuration\/change-user-password\/\">change the default password for security<\/a>.\uff08\u51fa\u4e8e\u5b89\u5168\u8003\u8651\u8bf7\u5728<span class=\"has-inline-color has-vivid-red-color\">\u64cd\u4f5c\u524d\u8bf7\u4fee\u6539\u7cfb\u7edf\u9ed8\u8ba4\u5bc6\u7801<\/span>\uff09<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"debian\">Debian<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -f \/etc\/ssh\/sshd_not_to_be_run\nsudo systemctl enable ssh\nsudo systemctl start ssh\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ubuntu\">Ubuntu<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv \/etc\/init\/ssh.conf.back \/etc\/init\/ssh.conf\nsudo start ssh\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disable-the-ssh-server\">Disable The SSH Server \u5982\u4f55\u5173\u95edSSH<\/h3>\n\n\n\n<p>The SSH server is disabled by default in the Bitnami virtual machines. If you have&nbsp;<a href=\"https:\/\/docs.bitnami.com\/virtual-machine\/faq\/get-started\/enable-ssh\/\">enabled it as described here<\/a>, you can disable it following the opposite steps:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"debian-1\">Debian<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop ssh\nsudo systemctl disable ssh\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ubuntu-1\">Ubuntu<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo stop ssh\nsudo mv \/etc\/init\/ssh.conf \/etc\/init\/ssh.conf.back<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Enable Or Disable The SSH [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"class_list":["post-865","post","type-post","status-publish","format-standard","hentry","category-live"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=865"}],"version-history":[{"count":0,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/865\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}