2. Sep 2021 |

VPS price comparison – student in search of the cheapest

My main use of VPS is that i need to keep my dev MS SQL, PostgreSQL and MariaDB servers somewhere. The cheapest Hetzner VPS has done the job though for simple CRUD tasks. But bigger appliations (like WooCommerce) the Digital Ocean’s smallest droplet tends to become slow. Therefore I would not recommend anything below Hetzner’s CPX11 2 vCPU and 4GB of RAM.

The cheapest end of VPS

Minimum requirements: 1vCPU and 2GB memory. Looking only for Linux machines.

AWS, Google Cloud, Azure and Alibaba Cloud are much more expensive and more difficult to use for this simple purpose of just hosting few Docker containers with capped (end therefore predictable) pricing.

If you need 2 vCPU then starting price at the moment is shown in the table below.

Digital Ocean $15
Hetzner CPX11 € 4.75
5. Feb 2020 |

SSH keys in Ubuntu (basic commands)

Update and clean.

#! /usr/bin/bash

sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove --purge && sudo apt-get -y clean

Regular ones

ctrl+A – beginning
ctrl+E – end
alt+F – move cursor forwadr
alt+B – move cursor back
ctrl+G – exit ssh session or exit recursive search
ctrl+L – clear terminal
ctrl+U – clear line, if curson in the end
ctrl+K – clear line, if curson in the beginning
ctrl+D – logout

mv * .. – move everything one folder up

SSH keys

Located in: /home/robert/.ssh/id_rsa.pub
To generate keys: ssh-keygen
To display in terminal: cat ~/.ssh/id_rsa.pub
Give bash script permissions: chmod +x script.sh

Add additional keys to this file:
cat ~/.ssh/authorized_keys

New password for current user: sudo passwd root

Useful guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604

WSL (Windows subsystem for Linux)

explorer.exe . – opens current directory in Explorer.

sudo tcpflow -p -C -i lo port 8080 – listen to port 8080 and see the traffic