January 8, 2017August 28, 2016 by Andrew Fore
As part of the rebuild on my Plex Media Server using CentOS 7, I had intended to configure Google Authenticator but hadn’t gotten around to doing it yet. As I got into the process recently I discovered that many of the steps that I had used when configuring my CentOS 6 Digital Ocean droplet were out of date to the point of uselessness.
I also discovered that most of the guides that I found either relied on the older 1.0 code release which was also outdated or used a unknown RPM repo. As such I decided to write up the process that I followed to use the code downloaded from the official GitHub repository.
NOTE: If you are doing this in an enterprise setting, it is likely that your company has particular settings and restrictions that you may need to adhere to (e.g., not running things as the root user). Also, please note that all of my examples use the CentOS defaults unless specifically noted.
Read moreConfigure Google Authenticator on CentOS 7
Categories CentOS, Google, Security, Tips n Tricks, UncategorizedTags 2FALeave a comment October 5, 2015 by Andrew Fore
One of the tools that I use on a regular basis to test network connectivity updates is the “z” option of netcat. Apparently when RedHat rolled out the latest version of their distribution of RedHat Enterprise Linux (RHEL) they decided to move to using the nmap-ncat package instead of the nc package. The command options a very different.
So when attempting to test single port like I would have under previous releases I now use the following syntax:
# echo | nc -w1 $host $port >/dev/null 2>&1 ;echo $?
If the result that is returned is a zero then you have successfully connected to the remote host on the desired port. This also applies to CentOS 7 since it is a “clone” or copyleft port of the RHEL7 binaries.
Categories CentOS, Linux, Tips n Tricks, Uncategorized1 Comment