Secure your ssh connection disabling ssh password logins

First off, having to remember a password for each of your clients server it is quite daunting, so it might seem a good idea to store the password to your server access in a very secure spreadsheet file. Well that is not a great idea, in stead you should secure the access to your server using an ssh key, this also will allow you to forget about a password and gaining access straight with a command line. So let’s start. First of all you will have to create a key , if you haven’t already (this is a MAC guide, but …

Read moreSecure your ssh connection disabling ssh password logins

Inexpensive stage LAMP server with Raspberry Pi3 and Ubuntu Server

Have you ever been in the position of asking your self  “How much shall I spend for a development server?”, “Shall I get an inexpensive shared host?” , “Will it be enough for my needs?”, “Perhaps i should upgrade”… well ask no more. If you don’t expect much traffic, and you are on a tight budget, or simply you want to make more practice in maintaining a web server, why not going for a home made web server. Raspberry Pi now i quite performing for a stage environment, and very very inexpensive. As a test we have got  the Raspberry …

Read moreInexpensive stage LAMP server with Raspberry Pi3 and Ubuntu Server

Let’s Encrypt ! How to create free ssl certificates on Ubuntu

SSL Certificates, sometimes called digital certificates, are used to establish a secure encrypted connection between a browser (user’s computer) and a server (website). The SSL connection protects sensitive data, such as credit card information, exchanged during each visit (session). Let’s Encrypt provides an easy way to obtain and install trusted certificates for free. In this guide we will show how to create a free certificate using Let’s Encrypt on Ubuntu. Download the Let’s Encrypt Client We will first download Let’s Encrypt client, certbot-auto from the EFF download site. Download  certbot-auto to the /usr/local/sbin directory by typing: cd /usr/local/sbin sudo wget https://dl.eff.org/certbot-auto We …

Read moreLet’s Encrypt ! How to create free ssl certificates on Ubuntu

Restrict sftp users to theirs home directory and share folders

I often have to share resources to clients ,  but allowing them to “play” with the entire file system of the web app, might end up in disaster. That’s why i decided to write this little guide on how to restrict sftp users to theirs home directory and share folders. Restrict sftp access to home directory First we need to modify the sshd_config file which contains all the ssh configurations. sudo nano /etc/ssh/sshd_config Make sure the following line is enable, otherwise add it your self. Subsystem sftp internal-sftp  -f AUTH -l VERBOSE On DigitalOcean I had the following line, which …

Read moreRestrict sftp users to theirs home directory and share folders