No more password prompts when using sudo

The sudo command allows you to run commands with root privileges. By default, sudo will prompt you for your password before running a command. However, you can configure sudo to allow you to run commands without a password. This can be useful for scripting or for automating tasks. To make sudo passwordless, you need to edit the sudoers file. This file contains configuration information for sudo. To edit the sudoers file, open a terminal window and type the following command:...

March 27, 2023 · 1 min · Jahnin Rajamoni

SSH - Login using certificates instead of password

By default, SSH requires you to enter a password each time you log in. However, you can set up passwordless SSH login using a public/private key pair. This is a more secure way to log in, and it can also save you time. To set up passwordless SSH login, you will need to generate a public/private key pair on your local computer. You can do this using the following command:...

March 27, 2023 · 2 min · Jahnin Rajamoni

Alternative to netcat in linux to test ports

While working on VMware Unified Access Gateway, we needed to test TCP/UDP port connectivity from within the appliance to a syslog server. The appliance did not have the usual go to tool, netcat. So, what are the alternatives to test port connectivity in Linux? Interestingly, you can use bash to test port connectivity for you, like below: To test tcp port connectivity to 192.168.1.1 on port 514, use the command...

July 26, 2017 · 1 min · Jahnin Rajamoni

Restrict AD access to the vSphere Management Assistant

When vMA is added to active directory, be default, all users will be able to login to the appliance. In order to restrict the login to certain users or groups, we need to manually edit the Likewise configuration file located in /etc/likewise/lsassd.conf Look for the following section, uncomment “require-membership-of” and provide a comma seperated list of users, groups and sid’s that you would like to restrict access to. # Allow only the following users and groups...

June 10, 2015 · 1 min · Jahnin Rajamoni

HAProxy and VMware View

HAProxy is an open source load balancer. More info here: http://www.haproxy.org. HAProxy can load balance HTTP/HTTPS and supports session persistence. The View Setup: Internal Network Subnet: 192.168.100.x External Network Subnet: 10.1.1.x Two connection servers with the below IP Addresses: Connection Server 1: 192.168.100.3 Connection Server 2: 192.168.100.4 Two Security Servers with the below IP Addresses: Security Server 1: 10.1.1.3 Security Server 2: 10.1.1.4 HAProxy Load Balancer server configuration: OS: Ubuntu Server 14....

November 5, 2014 · 2 min · Jahnin Rajamoni