OpenSSH Hide Version Number From Clients

The OpenSSH server can be configured to hide its version number from clients, making it more difficult for attackers to target known vulnerabilities in specific versions of the software. This can be done by editing the OpenSSH server configuration file, usually located at /etc/ssh/sshd_config. To hide the version number, add the following line to the … Read more

HowTo: Linux Install LibreOffice

The process of installing LibreOffice on Linux depends on the specific Linux distribution you are using. Here are the steps for installing LibreOffice on some popular Linux distributions: Ubuntu: sudo apt-get update sudo apt-get install libreoffice Fedora: sudo dnf install libreoffice CentOS: sudo yum install libreoffice Debian: sudo apt-get update sudo apt-get install libreoffice Arch … Read more

UNIX / Linux: Shell Scripting With mail Command

The mail command in Unix/Linux can be used to send emails from the command line. Here’s an example of how to use the mail command in a shell script: #!/bin/bash to=”recipient@example.com” subject=”Test Email” message=”This is a test email sent from the shell script.” echo “$message” | mail -s “$subject” “$to” In the example above, the … Read more

UNIX / Linux: awk Add Two Numbers

To add two numbers in Unix or Linux using awk, you can use the following command: awk ‘BEGIN {print [number1] + [number2]}’ Replace [number1] and [number2] with the two numbers you want to add. For example, to add the numbers 10 and 20, you would use the following command: awk ‘BEGIN {print 10 + 20}’ … Read more

nginx: Install GeoIP Module For Country / City Level Geo Targeting

To install the GeoIP module for country or city level geo-targeting in Nginx, you can follow these steps: Install the GeoIP library: You can install the library using your operating system’s package manager. For example, on Ubuntu, you can use the following command: sudo apt-get install libgeoip-dev Download the GeoIP database: You can download the … Read more

Lighttpd Deny Access To Folders / Directories

To deny access to certain folders or directories in Lighttpd, you can use the URL access control feature in Lighttpd. This can be done by using the url.access-deny configuration directive in your Lighttpd configuration file. Here is an example configuration that denies access to the /secret directory: $HTTP[“url”] =~ “^/secret/” { url.access-deny = ( “” … Read more