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: SSH
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 […]
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 […]
Using VMware PowerCLI (#002) – User Accounts
As part of my studying, in this post I’d post one little scripts which I made so far for working with user accounts on “VMware ESXi” hosts. This script will add or remove user account from all hosts connected to one “VMware vCenter” server, in next version I’d add selecting function so user can be […]
PowerCLI, TSM and Warning
Well, this post is all about doing some administration tasks using “VMware PowerCLI“. 1. Remote TSM (SSH) Think about conditions you’ve added 30 new hosts to your vCenter and for some reasons you want to enable remote access (SSH) on all these hosts; there are multiple ways like: 1. Enabling this option from “DCUI” by […]
Data Center Disaster – Lesson Learned
Well, this post going to have some technical information but it’s more like a document on “what’s happened and what should do”. Our company has multiple “data center design and support” project and three days ago there was disaster in one of them. Customer site consist of: One “HP EVA 8400 – 2C4D” as storage […]
Little tips on updating hosts using vCLI
Today I make some time free to update my home lab from “VMware ESXi 4.1” to “VMware ESXi 4.1 Update 1”. Well, This may look outdated topic or old version as VMware already announced “VMware vSphere 5.0” but I face an “Error”, I thought it may be good to share here. Quick Note: Full process […]
Unregistering & Registering VMs
This post is about the way to unregister and register VMs from/to ESXi hosts using commands (Local TSM, SSH) not GUI (vSphere Client). May be you ask, why should I do such a thing? well, assume you have two hosts in cluster without EVC enabled for it, in order to enable EVC for cluster, all […]
DCAS-#002 (Storage)
Base on my previous post, this would be another post in my VCAP-DCA Preparation series (DCAS). It’s about storage and how to add new storage (iSCSI) to the hosts. Condition: There is two ESXi 4.1 hosts with one NIC, one vSwitch (vSwitch0) and two VMKernel port (vmk0 & vmk1) and both have their local datastores […]
DCAS-#001 (Lab Preparation … Network)
Again, I have new goal and I want to rearrange my home lab to meet the requirements for it. This time my goal is “VCAP4-DCA” certification and I have to use different kind of tools for preparation. As one of my PC stop working (one of my two Physical host – whitebox), I have to […]