Creating a user on a Ubuntu Linux server with a certificate login in PuTTY just like Amazon AWS

One nice thing about amazon AWS is that it creates a ubuntu user for you and spits out a certificate which you can send through puttygen and create a certificate to login to the server quite easily. This is very convenient.

However if you are on some other host, you don’t have this convenience. A password login is the default. So here’s how to do that.

Create the new user:
sudo useradd yourusername
( make sure you specify a password – we aren’t going to use it, but the OS needs it. )

Login to this new user account and then type:
ssh-keygen -t rsa
( just stick with the default choices unless you want a password on the cert too. )

Then move these files to the .ssh directory and shuffle the names..

mv ~/.ssh/ ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
cat ~/.ssh/id_rsa

Cat will produce a big dump like…

Copy this entire chunk into a text file and save it to a .pem file on your windows desktop. This is the equivalent of what Amazon AWS generates when it first sends you the key.

You can then load this file into PuTTYgen, click ‘save private key’, and boom, you have your .ppk.

Two other tweaks to imitate amazon’s setup…

in /etc/ssh/sshd_config, set this line:
passwordAuthentication no
This will disable password authentication and require a certificate for SSH logins, just like how Ubuntu AWS servers work by default.

Type sudo visudo to get into the sudo editor.
Change the line that includes your username to look like this:

yourusername ALL=(ALL) NOPASSWD:ALL

Then remove the user’s password using this command:
sudo passwd -d yourusername

Bam! you now no longer have to type the password for this user when sudo-ing.

The actually correct way to setup Microsoft Office365 DKIM records ( 2020 )

Okay, i had to do a write up on this because i spent hours looking through tutorials and even Microsoft’s site lead me astray.. here is a tested working way to get DKIM working through Office 365.

Step 1. Login to the admin center ( you should know how to do this! )

Step 2. Click ‘exchange in the lower right hand menu, after clicking the option to display all items:

Step 3. Click ‘dkim’ in the ‘protection’ area.

Step 4. You will see a list of domains. Click the domain you’re looking to enable DKIM for, and hit ‘enable’.

A message like this will pop up, giving you the DKIM settings to put in the DNS settings of your domain host. The fun part here is that after you select the text, the yellow area showing your CNAME records disappears, so you have to hit ctrl-c to copy it while holding the mouse button down. Thanks Microsoft, lol!

Step 4B.

Okay, so what Microsoft doesn’t tell you is the ‘host’ setting for the CNAME records. This is the fun part that you’re probably missing.

The hostname/value combination for this record:

Should be:
Host: selector2._domainkey

Step 5.

Wait an hour ( or however long it is your nameserver tends to propagate records – this can be between 5 minutes to 2 days! ), go back to the Microsoft Office Admin site, and hit ‘enable’ on DKIM for that domain. If you don’t get a yellow error message, you are all set up with DKIM:

Results of my ketogenic intermittent fasting experiment

Last winter, i had been watching some youtube videos by the hodge twins on intermittent fasting and felt inspired to try it myself. In a previous post, i talked about the routine i created and explained why i thought it was a good idea, based on months of research and a little personal experience prior. I decided to approach my intermittent fasting routine like a science experiment, and devoted myself to being as consistent with the routine as possible, as well as tracking my weight every day.

Here is an annotated plot of the weight data i collected using google fit:


I aimed to lose 25lbs but lost 27. I was pretty impressed with the fact that i could still lose weight at this pace, years after losing 80lbs doing a semi-lazy ketogenic diet and having the effort required to lose more weight exceed my willpower under that way of dieting. I lost weight at almost twice the speed doing intermittent fasting.

Some interesting things happened along the journey, though.

Continue reading “Results of my ketogenic intermittent fasting experiment”

Farming for veterans with PTSD: making lemonade out of lemons

My favorite youtube channel ( peak moment ) did a video about a video about an organization that’s devoted to easing the transition from the battle field to civilian life for veterans recently.

Having been anti-war all my life, i find the idea of shifting from destruction to creation rather touching and figured i’d share..

Here is another organization doing the same thing:

Hormone articles and premature pseudoscience call-outs.

Dear readers;

I posted my article about xenoestrogens to various sites and received a mixture of reactions ranging from ‘this is a load of pseudoscience bs’ to ‘holy shit, you’re right, thank you!’. All in all, this article has been the most popular article i have ever written in my short few months of serious blogging.

I wanted to thank both the haters and the appreciators of that article, right here. This spurred me to revise and improve the article. Those who criticized the article appeared to have valid points at first, and then i further researched what they were saying and found that my argument was actually on-point, and that the spectrum of external estrogen influence was even greater than i suspected. The article ended up being tempered in fire and came out stronger as a result.

For those who appreciated the article, i have a link dump of new and interesting information for you at the bottom of this article.

Continue reading “Hormone articles and premature pseudoscience call-outs.”

[ESSAY] Milk’s estrogen, xenoestrogens, and a theory on negative effects on men and women.

I have been doing some pretty heavy reading about hormones recently, after reading a study showing that milk was chock full of estrogen. This essay is designed to shine a light on a swath of the dietary and environmental sources of hormones that we ingest on a daily basis in today’s time, and why it is important that men and women avoid these extra hormones at all costs.

Bear with me, this is going to be a long ride down the rabbit hole, neo..

Continue reading “[ESSAY] Milk’s estrogen, xenoestrogens, and a theory on negative effects on men and women.”

[ESSAY] Web design and OS trends that need to die

Design of OSes and webpages from 2010-present have been bugging me for quite a while. I have intentionally been avoiding upgrading from Windows 7 and prefer to browse websites with appealing pc-friendly designs ever since. It seems like desktop operating systems are now designed without desktops in mind, and websites are designed on desktops without desktops in mind in well.

I’m gonna try to make a case for why this sucks balls, from a long term power user perspective.


My local news station recently upgraded to a new ‘modern’ web design centered around mobile devices. While the decluttering may have helped, it is now devoid of color and interesting detail. The rest of the site has tons of blank space and bizarre font sizing. Which is more visually appealing to you?

Continue reading “[ESSAY] Web design and OS trends that need to die”

[Essay] why every libertarian should support alternative energy

The situation with energy


The United States, like many countries, have been dependent on fossil fuels since the extraction and use of it was invented. These energy-dense and economical forms of energy have dramatically increased the quality of life for the world at large.

( early cotton picking machine, circa 1886 )

Fossil fuels enabled the mechanical automation of dull, repetitive work such as farm labor, which was the primary reason that we were able to eliminate slavery in the western world earlier than most of the globe. ( notice that after the civil war, cotton was still available at prices everyone could afford? we had invented many machines to automate slave labor at a more economical price before, during, and after the civil war – slavery was outmoded by technology – not morality, unfortunately. )

Continue reading “[Essay] why every libertarian should support alternative energy”

“when encryption is outlawed, only outlaws will have encryption”

Here it comes. The UK is getting the ball rolling on axing the best part of the internet – privacy, anonymity, and security – the core of what made the internet a free medium. As usual, we have the ‘because of the terrorists’ Justification. I wonder if criminals who seek to murder will follow the law? probably not, huh?

The UK’s prime minister, David Cameron, has re-iterated that the UK government does not intend to “leave a safe space—a new means of communication—for terrorists to communicate with each other.” This confirms remarks he made earlier this year about encryption, when he said: “The question is are we going to allow a means of communications which it simply isn’t possible to read. My answer to that question is: no, we must not.”

David Cameron was replying in the House of Commons on Monday to a question from the Conservative MP David Bellingham, who asked him whether he agreed that the “time has come for companies such as Google, Facebook and Twitter to accept and understand that their current privacy policies are completely unsustainable?” To which Cameron replied: “we must look at all the new media being produced and ensure that, in every case, we are able, in extremis and on the signature of a warrant, to get to the bottom of what is going on.”