Category: Linux

Limiting SSH access for dynamic IP source

Summary This post is about a small script that can update the /etc/hosts.allow with single IPv4 for use with Dynamic DNS. Please check the ‘ Warning ‘ section before using the script. If you’ve Server or VPS with public IP and want to limit SSH access (allow or deny) to specific IP or IP range […]

Updated: January 3, 2021 — 1:22 AM

Working with ssh keys on Linux servers/cluster

If you’ve Linux servers/cluster and for each user you need to have ssh key for password-less access to different nodes, below script might be useful or be a small hint on what you might be able to get. Scenario which I made below script is a cluster of Linux servers running distributed computing application and […]

Updated: December 14, 2020 — 6:41 PM

Checking bind config & restarting service

I was using bind installed as DNS server in home lab and as I was doing multiple modification, I wanted to if I made any mistake in my configuration, so I made below little script which is supper easy to read and modify; it’ll just show where (which file) issue exist instead of checking manually […]

Updated: December 5, 2020 — 11:24 PM

SSH & 2FA on Linux

There are multiple ways to make an SSH connection more secure and one of them is adding “Two Factor Authentication (2FA)” to the system and integrate it with ssh connectivity. Here the steps that could help with adding this feature to the system and its integration. This feature could be added to a different distribution […]

Updated: April 15, 2018 — 8:33 PM

Docker Menu Base Tool

As I mentioned before, I wrote a small script (for Linux) to help me with containers in my test lab. This small script would help with “starting, stopping, removing, creating and listing” of containers. For “starting” or “stopping” the containers, it’s possible to use their name or pattern. For the creation of container, it’s possible to […]

Updated: April 14, 2018 — 7:19 PM

Some of Docker commands

When Docker engine installed, there are multiple commands comes with it in order to let one work with images in different ways. Here I’m listing few commands and how to use them. 1. docker pull It’s possible to just download the image from a registry for deploying in future by just running the “docker pull […]

Updated: April 3, 2018 — 12:07 PM

Docker on Ubuntu

As I said before, I’ve selected Docker for using containers. For OS, I’ve selected Ubuntu Server 17.10 and for using containers the engine should be installed and then one proceeds. System preparation & Docker installation First thing first, the system should be prepared for engine installation and this preparation includes the OS update & prerequisite installation; […]

Updated: April 2, 2018 — 11:48 PM

Starting with Dockers

After a long time of not writing, I decided to start again with new things. The “Containers”, you might be heard of it or even implemented it in large scale; as I’m new to this technology, I’d try to share things I’m learning about it here. First migration was from “All Application running directly on Physical […]

Updated: April 2, 2018 — 11:48 PM