Basic setup

What is ubuntu?

Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine. 

Making new ubuntu user

sudo adduser deployer

sudo usermod -aG sudo deployer

su deployer

sudo -i

whoami


SSH KEYS AND PUBLIC KEY AUTHENTICATION

ssh-keygen

cd ~/.ssh

cat id_rsa.pub

ssh -T git@github.com


Authorized keys:

Go to your Local PC Terminal:

cd ~/.ssh

cat id_rsa.pub

copy your ssh key

Go to your server PC Terminal:

cd ~/.ssh

sudo vi authorized_keys

pest your key and save (Simple Vim command ESC -> :wq -> enter)

then connect from you pc using ssh key:

ssh deployer@your_ip example: ssh deployer@13.125.22.33