Howto
All posts under tag "Howto"

Secure file transfer with Nginx
An example of Nginx configuration for serving a specific file over https with basic login and password authentication.

Forced Command in SSH: Running Only One Command Without Shell Access
In this note, we will look at the "Forced command" mechanism in SSH, which allows SSH keys to be limited to executing a single command.

Bash: Writing a Script to Simulate Mouse Activity
In this short note, we will write a Bash script that moves the mouse pointer one pixel and back at a specified interval. This is useful if your desktop is regularly locked because there is no user activity😉.

A Little About Shebang in Linux
Shebang is the #! sequence at the beginning of an executable file that tells the system which program should interpret this script📝.

SSH - Port Forwarding: Local and Reverse Tunnels
Today we will look at port forwarding through SSH🔐: how to use local and reverse tunnels to organize access to local and remote services.

Bash: An Example of Optimizing Filtering Commands with grep and awk
I will tell you about a task I solved the other day🧑💻 I slightly changed the input data, but the essence remains the same. There are two CSV files: 📄ping_status.csv contains diagnostic information about host availability by ping.

Bash: Features of Arithmetic Operations - Increment ((expression++))
When testing the host availability check script I mentioned last time, I encountered an interesting Bash feature when performing arithmetic operations💪.

Bash: Writing a Universal Host Availability Check Script
Today we'll write a useful Bash script🧑💻 that performs various host availability checks on the network🌐. As an example, I'll show how to check connectivity using the `ping` utility🏓 and run a traceroute when it's lost⚡.

flock - Locks in Shell Scripts
In this note, we will talk about file locks in Bash scripts🔒 using the specialized utility flock.

Writing a Function for Quick Access to Complex Commands in Zsh and Bash
In this article we will create a function for the Zsh and Bash shells that allows quick and convenient access to a prepared list of complex, long, and hard-to-remember commands🤯.

A quick way to check VPN connection speed using SSH
A short note about how to check Download/Upload speed using SSH on Linux. This kind of diagnostics is useful when analyzing issues related to data transfer over secure communication channels, such as VPN.

Writing a bash script to connect to an OpenConnect VPN server
Today we'll write and try out a simple but well-thought-out bash script that performs a client connection to an OpenConnect VPN server, which we covered setting up and running in one of the previous articles.





