Google 云主機連接教程,google 商店下app
Google 云主機連接教程,google 商店下appGoogle 云主機連接教程如何創(chuàng)建賬號創(chuàng)建實例這里就不說了,網(wǎng)上一大堆教程,而且基本上會有引導,指引一步步完成,這里只說創(chuàng)建好實例之后,如何連接到服務器在谷歌云后臺打開ssh連接控制臺compute Engine 虛擬機實例 就會看到自己創(chuàng)建的實例設置root密碼1.設置下 root 的新密碼$ sudo passwd root# 輸入新密碼在本地生成私鑰和公鑰$ cd ~/.ssh$ sshkeygen f myKeyGenerating public/private rsa key pair.Enter passphrase (empty for no passphrase): (給 private key 設置一個密碼,避免私鑰被人盜用的風險)Enter same passphrase again: (再次輸入上次相同密碼)Your identification has been saved in myKey.Your public key has been saved in myKey.pub.The key fingerprint is:SHA256:EW7ow1wCKAh1rM/GG08ZAwOy+7+SUiT0rFXY2f8mNvk user@computername.localThe keys randomart image is:+[RSA 2048]+=.o+= o . o+.o+= + . o.o..oo * ..o+ +o+ o .oo+ =+S o o. * o. = o ..o = . = . o.. . E . .o. +[SHA256]+# 此時會生成 公鑰 myKey.pub 和 私鑰 myKey復制公鑰$ cat myKey.pubsshrsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjHKPaeglRVJzAhNq+W中間部分省略。