Bootstrap ubuntu cloud instance guide
Oct 22, 2015
1 minute read

ssh

gen ssh key pair on server

awayyao@instance-1:~$ ssh-keygen -t rsa
awayyao@instance-1:~$ cd .ssh/
awayyao@instance-1:~/.ssh$ cat id_rsa.pub >> authorized_keys 
awayyao@instance-1:~/.ssh$ cat id_rsa
(content...)

now you can use that private key to login remote instance

client

ssh -i [file name] awayyao@[ip address]

apt

update apt repo

sudo apt-get update

nginx

install

awayyao@instance-1:~$ sudo apt-get install nginx

Now you can visit http://[ip] to view a nginx welcome page.

Next to go

Now if you want to build a blog site, please click here.


Back to posts