Monthly Archives: January 2014

Display SSH Warning Message to Users

One of the easiest way to alert unauthorized people that they are trespassing when they try to access the SSH of your server (maybe by mistake) is to add a warning message before and/or after login. Of course, this does not mean that your server is secure when you add it, but at least they… Read More »

How to compute the MD5 hash of a file

MD5 is one of the most common types of hash used to verify the integrity of a file after a transfer (and not only). You may even find some files with .md5sum extension which contain the MD5 checksum of some existing files. The MD5 hash is commonly expressed as a 32 digit hexadecimal number, e.g.: 1bc29b36f623ba82aaf6724fd3b16718… Read More »

How to view all the open ports

One of the first thing you learn as a system administrator is that programs (applications, scripts) need TCP connections to communicate with other devices. This can sometimes also be a problem. Some exploits open a new port and can cause some serious problems. However, there is a very simple way to find out which programs… Read More »

How to install ffmpeg on CentOS

One of the most useful tools for multimedia conversions (audio/video) is ffmpeg. This tool has a long tradition: started in 2000, it is used by many Linux programs (both command line and with visual interface). In order to install it, you will need to setup first RPMforge and Epel repositories. You can find here the… Read More »