Control root log in using ssh


It is more secure to not permit “Root login” using password. It is a good idea to access root privileges through a local user ID and via su/sudo commands once locally authenticated. To disable root login using password, set the PermitRootLogin parameter of the sshd_config file to without_password. Once this parameter is set, you will not be able to login using password, but will be able to with ssh keys.…
Read more ⟶

Persistent Reverse SSH Tunnel with SSH Keys


Have you ever wanted to access a machine behind NAT? Lets say you have a machine that blocks all incoming traffic (DESTINATION), and you would like to be able to access it from your home machine (SOURCE). Since the destination machine allows for outgoing connections, we can use Reverse SSH tunneling and a simple script to keep this connection up from the destination to source. As long as this connection stays up, we will be able to access the destination machine behind NAT from our home machine.…
Read more ⟶

Tea & Your Health


Tea is an aromatic beverage commonly prepared by pouring hot or boiling water over cured leaves of the tea plant, Camellia sinensis. After water, tea is the most widely consumed beverage in the world. It has a cooling, slightly bitter, and astringent flavor that many people enjoy. Real tea is derived from a particular plant (Camellia sinensis) and includes only four varieties: green, black, white, and oolong. Anything else (like herbal “tea”) is an infusion of a different plant and isn’t technically tea.…
Read more ⟶

Eclipse Shortcuts


Read more ⟶

Convert id_rsa to ppk and ppk to id_rsa in Linux


PPK (Putty Private Key) files are private key files used by Putty which is an SSH client that is mostly used in Windows. This guide will show you how to convert private key files from Putty’s format to OpenSSH, and vice versa. Convert id_rsa to ppk To convert id_rsa file to private.ppk: # install puttygen which is part of the putty package sudo apt-get update sudo apt-get install putty # convert private.…
Read more ⟶

Set Up Multiple Sites on One Nginx Server


Server blocks can be used to configure and host more than one domain on a single server. Prerequisites Make sure Nginx is installed and can be started without any issues. For this guide we will be: using a non-root user with sudo access. setting up Nginx to run two sites, site1.com and site2.com with very simple index pages. We will also be assuming the DNS has been configured already.…
Read more ⟶

Loading iptables automatically at startup


iptables rules are created and modified using iptables command, saved using iptables-save and we can load the saved files using iptables-restore command. It is possible to create a script using the above commands to create and save an iptables file, and load it again at system startup. But there is an easier way. iptables-persistent for Debian based systems The package iptables-persistent takes over the task of loading the saved iptables rules.…
Read more ⟶

Fun C/C++ Declarations


auto accident; register voters; static electricity;

Read more ⟶

Sleep and Dreams


Do you ever feel sleepy during the day? If so, you are familiar with the powerful need for sleep. However, you may not realize that sleep is as essential for your well-being as food and water. Until the mid 1800s, most people thought of sleep as a passive part of our daily lives. We now know that our brains are very active during sleep. It affects our physical and mental health in many ways.…
Read more ⟶

Bad Ingredients in Food


Food companies use lots of ingredients to extend shelf life, make foods more colorful, even to better the tastes, but some of these ingredients should be avoided. Check out the list WholeFoods has put together of what they call unacceptable food ingredients for more. Artificial Colors Adding colors to food make them look more appealing for example kids rather eat rainbow-colored cereals then one that is brown. Almost all colorants approved for use in food are derived from coal tar and may contain up to 10ppm of lead and arsenic.…
Read more ⟶