Hardening Ubuntu

This is a short list, largely borrowed from digitalocean Log in with your provided root credentials ssh root@123.123.123.123 Create a user (just hit enter and skip the info if you want) adduser username Enable the user to use sudo usermod -aG sudo username Disable root SSH login nano /etc/ssh/sshd_config Modify the file like below. Pick a high port number between 1024 and 34627. Hit ctrl-x, ‘Y’ and finally hit enter to save....

November 1, 2020 · 2 min · Ask Blaker

Jekyll with Docker, Nginx and Traefik

Prerequisites A hardened VPS A domain with dns service. (Forward example.com to your vps ip) Jekyll > sudo apt-get install ruby-full build-essential zlib1g-dev > echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc > echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc > echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc > source ~/.bashrc > sudo gem install jekyll bundler > cd jekyll-directory > sudo bundle install > jekyll build A nice theme. This is, and I recommend: minimal-mistakes A folder structure like this: ....

November 1, 2020 · 2 min · Ask Blaker