use google server

1 login in VM

login in the console and then change the configuration

sudo -i 
vim /etc/ssh/sshd_config

change the following lines

PermitRootLogin yes
PasswordAuthentication yes

reboot and then change you password 

passwd

# if you want change other user's password

passwd username

 2 bound your domain 

reference

make sure you have a domain

in console, config apache

sudo apt-get update && sudo apt-get install apache2 -y

echo '<!doctype html><html><body><h1>Hello World!</h1></body></html>' | sudo tee /var/www/html/index.html

now input http://public ip, you can see 'hello world' on your page.

then be here to enable  Compute Engine API

lastly, be here to add the domain info.

 

posted @ 2023-11-18 17:28  Daze_Lu  阅读(28)  评论(0)    收藏  举报