{"id":20,"date":"2020-12-11T16:34:46","date_gmt":"2020-12-11T08:34:46","guid":{"rendered":"http:\/\/zoran.090702.xyz\/?p=20"},"modified":"2020-12-11T16:34:46","modified_gmt":"2020-12-11T08:34:46","slug":"google-compute-enginegce%e5%ae%9e%e4%be%8b%e5%bc%80%e5%90%af%e5%af%86%e7%a0%81%e4%b8%8eroot%e7%94%a8%e6%88%b7%e7%99%bb%e9%99%86","status":"publish","type":"post","link":"https:\/\/zoran.090702.xyz\/?p=20","title":{"rendered":"Google Compute Engine(GCE)\u5b9e\u4f8b\u5f00\u542f\u5bc6\u7801\u4e0eroot\u7528\u6237\u767b\u9646"},"content":{"rendered":"<p>Google Compute Engine\u521b\u5efa\u7684VM\u5b9e\u4f8b\uff08\u4ee5\u4e0b\u7b80\u79f0GCE\uff09\u4e0a\u51fa\u4e8e\u5b89\u5168\u6027\u8003\u8651\uff0c\u53ea\u5141\u8bb8\u901a\u8fc7ssh key\u767b\u9646\u5e76\u7981\u7528\u4e86root\u767b\u9646\u3002\u7531\u4e8eGoogle\u8d60\u9001300\u7f8e\u5143\u4e00\u5e74\u671f\u4ee3\u91d1\u5238\uff0c\u5f88\u591a\u7528\u6237\u53ea\u662f\u4e3a\u4e86\u642d\u4e2a\u68af\u5b50\u6216\u8005\u968f\u4fbf\u73a9\u73a9\uff0c\u5bf9\u5b89\u5168\u6027\u8981\u6c42\u4e0d\u9ad8\uff0c\u81ea\u7136\u6ca1\u5fc5\u8981\u901a\u8fc7ssh key\u90a3\u4e48\u9ebb\u70e6\uff0c\u4ee5\u4e0b\u4ecb\u7ecd\u4ee5\u4e0b\u5f00\u542f\u5bc6\u7801\u767b\u9646\u4e0eroot\u767b\u9646\u6d41\u7a0b\u3002<\/p>\n<div class=\"alert alert-danger\">\u6ce8\u610f\uff01\u4ee5\u4e0b\u64cd\u4f5c\u4f1a\u964d\u4f4e\u767b\u9646\u5b89\u5168\u6027\uff0c\u8bf7\u81ea\u884c\u659f\u914c\u662f\u5426\u5f00\u542f<\/div>\n<p><strong>\u7cfb\u7edf\u4e3a\u9ed8\u8ba4\u7684Debian8\uff0c\u5176\u4ed6\u53d1\u884c\u7248\u53ef\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u3002<\/strong><\/p>\n<p>1\u3001\u5728GCE VM\u5b9e\u4f8b\u5217\u8868\u4e2d\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u7a97\u53e3\u4e2d\u6253\u5f00\u201d\u8bbf\u95ee\u5b9e\u4f8b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/mapgun.com\/wp-content\/uploads\/2017\/03\/gce_login-1024x399.jpg\" alt=\"\u300aGoogle Compute Engine(GCE)\u5b9e\u4f8b\u5f00\u542f\u5bc6\u7801\u4e0eroot\u7528\u6237\u767b\u9646\u300b\" \/><\/p>\n<p>2\u3001\u901a\u8fc7sudo su\u547d\u4ee4\u5207\u6362\u5230root\u7528\u6237<\/p>\n<div id=\"crayon-5fd32efc4bd21097646741\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd21097646741-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd21097646741-1\" class=\"crayon-line\"><span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">su<\/span> <span class=\"crayon-c\">\/\/\u5207\u6362\u5230root\u7528\u6237<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>3\u3001\u4fee\u6539SSH\u914d\u7f6e\u6587\u4ef6\/etc\/ssh\/sshd_config<\/p>\n<div id=\"crayon-5fd32efc4bd27312988540\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd27312988540-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd27312988540-1\" class=\"crayon-line\"><span class=\"crayon-v\">vi<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">etc<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">ssh<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">sshd_config<\/span> <span class=\"crayon-c\">\/\/\u7f16\u8f91\u6587\u4ef6<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u627e\u5230PermitRootLogin\u548cPasswordAuthentication<\/p>\n<div id=\"crayon-5fd32efc4bd28878577799\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd28878577799-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5fd32efc4bd28878577799-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd28878577799-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5fd32efc4bd28878577799-4\">4<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd28878577799-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5fd32efc4bd28878577799-6\">6<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd28878577799-7\">7<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd28878577799-1\" class=\"crayon-line\"><span class=\"crayon-p\"># Authentication:<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-2\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-i\">LoginGraceTime<\/span> <span class=\"crayon-cn\">120<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-3\" class=\"crayon-line\"><span class=\"crayon-e\">PermitRootLogin <\/span><span class=\"crayon-v\">yes<\/span> <span class=\"crayon-c\">\/\/\u9ed8\u8ba4\u4e3ano\uff0c\u9700\u8981\u5f00\u542froot\u7528\u6237\u8bbf\u95ee\u6539\u4e3ayes<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-4\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-e\">StrictModes <\/span><span class=\"crayon-v\">yes<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-5\" class=\"crayon-line\"><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-6\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-p\"># Change to no to disable tunnelled clear text passwords<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd28878577799-7\" class=\"crayon-line\"><span class=\"crayon-e\">PasswordAuthentication <\/span><span class=\"crayon-v\">yes<\/span> <span class=\"crayon-c\">\/\/\u9ed8\u8ba4\u4e3ano\uff0c\u6539\u4e3ayes\u5f00\u542f\u5bc6\u7801\u767b\u9646<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>4\u3001\u91cd\u542fSSH\u670d\u52a1\u4f7f\u4fee\u6539\u751f\u6548\uff0cUbuntu\u540c\u6837\u9002\u7528<\/p>\n<div id=\"crayon-5fd32efc4bd29453914791\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd29453914791-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd29453914791-1\" class=\"crayon-line\"><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">etc<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">init<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">d<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-e\">ssh <\/span><span class=\"crayon-v\">restart<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>5\u3001\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff0c\u53ef\u4f7f\u7528putty\u7b49\u5ba2\u6237\u7aef\u901a\u8fc7\u7528\u6237\u540d\u548c\u5bc6\u7801\u8bbf\u95ee\u5b9e\u4f8b<\/p>\n<p>a.\u4e3a\u73b0\u6709\u7528\u6237\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801\uff0c\u5148\u67e5\u770b\u5f53\u524d\u767b\u9646<\/p>\n<div id=\"crayon-5fd32efc4bd2a520071122\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd2a520071122-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5fd32efc4bd2a520071122-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd2a520071122-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd2a520071122-1\" class=\"crayon-line\"><span class=\"crayon-v\">mapgun<\/span><span class=\"crayon-sy\">@<\/span><span class=\"crayon-v\">instance<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">1<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">home<\/span><span class=\"crayon-sy\">$<\/span> <span class=\"crayon-v\">who<\/span><span class=\"crayon-h\">\u00a0\u00a0<\/span><span class=\"crayon-c\">\/\/\u4f7f\u7528who\u67e5\u770b\u5f53\u524d\u767b\u9646\u7528\u6237<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd2a520071122-2\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-e\">mapgun <\/span><span class=\"crayon-v\">pts<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-cn\">0<\/span> <span class=\"crayon-cn\">2017<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">03<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">21<\/span> <span class=\"crayon-cn\">06<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-cn\">40<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd2a520071122-3\" class=\"crayon-line\"><span class=\"crayon-e\">root <\/span><span class=\"crayon-v\">pts<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-cn\">1<\/span> <span class=\"crayon-cn\">2017<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">03<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">21<\/span> <span class=\"crayon-cn\">07<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-cn\">00<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u767b\u9646\u4e86mapgun\u548croot\u7528\u6237\uff0c\u4fee\u6539\u6307\u5b9a\u7528\u6237\u5bc6\u7801\u5373\u53ef<\/p>\n<div id=\"crayon-5fd32efc4bd2c473114971\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd2c473114971-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd2c473114971-1\" class=\"crayon-line\"><span class=\"crayon-e\">passwd <\/span><span class=\"crayon-v\">mapgun<\/span> <span class=\"crayon-c\">\/\/mapgun\u6539\u4e3a\u60f3\u8981\u4fee\u6539\u7684\u7528\u6237\u540d<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>b.\u65b0\u589e\u4e00\u4e2a\u7528\u6237<\/p>\n<div id=\"crayon-5fd32efc4bd2d624849719\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd2d624849719-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5fd32efc4bd2d624849719-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd2d624849719-1\" class=\"crayon-line\"><span class=\"crayon-e\">useradd <\/span><span class=\"crayon-v\">name<\/span><span class=\"crayon-h\">\u00a0\u00a0<\/span><span class=\"crayon-c\">\/\/\u65b0\u589e\u7528\u6237<\/span><\/div>\n<div id=\"crayon-5fd32efc4bd2d624849719-2\" class=\"crayon-line crayon-striped-line\"><span class=\"crayon-e\">passwd <\/span><span class=\"crayon-v\">name<\/span><span class=\"crayon-h\">\u00a0\u00a0<\/span><span class=\"crayon-c\">\/\/\u8bbe\u7f6e\u7528\u6237\u5bc6\u7801<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>c\u3001\u5982\u679c\u60f3\u4f7f\u7528root\u5bc6\u7801\u767b\u9646\uff0c\u9700\u8981\u8bbe\u7f6eroot\u7528\u6237\u5bc6\u7801\uff0c\u5b8c\u6210\u540e\u5373\u53ef\u4f7f\u7528root\u5bc6\u7801\u8bbf\u95ee\u5b9e\u4f8b\u3002<\/p>\n<div id=\"crayon-5fd32efc4bd2e615820271\" class=\"crayon-syntax crayon-theme-classic crayon-font-droid-sans-mono crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-mouseover wrap\">\n<div class=\"crayon-toolbar\" data-settings=\" show\">\n<div class=\"crayon-tools\">\n<div class=\"crayon-button crayon-nums-button crayon-pressed\" title=\"Toggle Line Numbers\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-plain-button\" title=\"Toggle Plain Code\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-wrap-button crayon-pressed\" title=\"Toggle Line Wrap\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<div class=\"crayon-button crayon-copy-button\" title=\"Copy\">\n<div class=\"crayon-button-icon\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-5fd32efc4bd2e615820271-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-5fd32efc4bd2e615820271-1\" class=\"crayon-line\"><span class=\"crayon-e\">passwd <\/span><span class=\"crayon-v\">root<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google Compute Engine\u521b\u5efa\u7684VM\u5b9e\u4f8b\uff08\u4ee5\u4e0b\u7b80\u79f0GCE\uff09\u4e0a\u51fa\u4e8e\u5b89\u5168\u6027\u8003\u8651\uff0c\u53ea\u5141\u8bb8\u901a\u8fc7ssh &hellip; <a href=\"https:\/\/zoran.090702.xyz\/?p=20\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Google Compute Engine(GCE)\u5b9e\u4f8b\u5f00\u542f\u5bc6\u7801\u4e0eroot\u7528\u6237\u767b\u9646<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-2","tag-4"],"_links":{"self":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":1,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}