Tag: 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

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

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 […]

Updated: November 24, 2016 — 8:04 PM

Ubuntu 14.04 LTS

It’s began with an email for seminar invitation; In that email, there was note on the Ubuntu 14.04 LTS and as I’m already using 14.04 Beta on few VMs, I looked for LTS and found out it would be available around March 17th and there were two commands for 13.10 users who wants to update […]

Updated: November 24, 2016 — 8:05 PM