March 21, 2018
Kill Active SSH Session

Force close active SSH connections after a defined time interval

How to kill an active SSH session after a defined time interval ?   Every Linux admin has used the idle timeout option  in [crayon-5ab32a399c933917107704-i/]  given […]
December 22, 2017

Linux SSH authentication with Google

Today I decided to play around with the Google two factor authentication method on one of my Linux VMs hosted in Azure. What this means? Well, my idea was to have a VM that I ususaly login with my SSH key automatically, to prompt me for a code that changes every 30 seconds. Google Authenticator offers just that.
July 31, 2017

How to remove orphaned PID files

If you have multiple PID files for the same process ( e.g.,, ecc. ) you may have a situation like the one described above. So, how do you delete the PID files for the processes that are no longer running, without interfering with the running processes?
February 13, 2017

Install an configure tacacs+ on Debian 8 – part 2

Let’s connect our Cisco switch with our Debian 8 tacacs+ server The first step is to connect to the ASA device and gain privilege exec access. […]
November 17, 2016

Install an configure tacacs+ on Debian 8 – part 1

About a year ago we needed at work a simple authentication solution for a VPN, but we didn’t had the budget for a standalone solution (like […]
November 14, 2016

PHP LDAP notify on expiring passwords

Hello, Bellow is a script I put together to notify users via e-mail about their domain account password expiration. The script is set to: notify users […]