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 […]
Tag: Linux
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 […]
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 […]
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 […]
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 […]
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; […]
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 […]
File Check (md5/sha1) under Microsoft Windows
When downloading file from internet or other system, network or removable devices in some case before using them files should be evaluated for health and integrity (assuming the source file is acceptable and working fine). Under different OS this activity could be different for example under Linux it’s possible to use “md5sum” command to evaluate […]