做爲程序員,熟知的騰訊雲,阿里雲,華爲雲等一系列雲服務器,都會去搭建部署自己個人的自媒體網站,網頁速度也得因價格而異,而Google 提供300美金,免費爲期一年使用 Google Cloud Platform。對於經濟不算寬裕的我來說,Google Cloud Platform 能創建多個雲服務器,去做負載測試,分佈架構在好不過了,去搭建科學上網也會是不錯的選擇!
1. Google賬戶登陸Google Cloud Platform
1.1 選擇Compute Engine 菜單下拉選擇VM實例,點擊創建實例後
1.2 在瀏覽器窗口打開,彈出Linux命令行對話框
1.3 切換到root角色
sudo -i |
1.4 修改SSH配置文件/etc/ssh/sshd_config
vi /etc/ssh/sshd_config |
修改PermitRootLogin和PasswordAuthentication爲yes # Authentication: PermitRootLogin yes # 默認爲no,需要開啓root用戶訪問改爲yes # Change to no to disable tunnelled clear text passwords PasswordAuthentication yes #默認爲no,改爲yes開啓密碼登陸 |
1.5 給root用戶設置密碼
passwd root |
1.6 重啓SSH服務使修改生效
/etc/init.d/ssh restart |
1.7 至此可以退出網頁Linux命令行對話框
1.8 打開SecureCRT 程序,如圖步驟創建本地連接Google Cloud VM的公鑰