Verifying SSH Key Fingerprints with DNS records

SSH Fingerprinting is a method to provide DNS records for key fingerprint verification of any client that logs into said machine.

Doing this will prevent users from blindly typing ‘yes’ when asked if they want to continue connecting to an SSH host who’s authenticity is unknown.

Most of the people just type ‘yes’ without even checking if it’s correct or not, which defeats the purpose of the prompt.

The fingerprint records together with DNSSEC will completely bypass the prompt and have SSH verify the fingerprint automatically.

Automatically switch between WiFi and Ethernet

I wanted a way to automatically switch between wifi and ethernet when I connect the system to the ethernet port, or auto start wifi when I disconnect the ethernet port.

Simplest way to do so was to use NetworkManager to enable/disable wifi, when we detect an ethernet connection.

I also wanted a way to track what is happening so we log to syslog our actions, and a way to disable the functionality without removing the file from they system.

Debian daily backup domains with tartarus.

In a previous article we saw how to set up a backup process for tartarus, in this article we will see how we can generate backups of the data in each vhost with tartarus, the reason I do this is so we can set up a daily incremental backup of the files for each domain.

Touchpad not working on Debian after suspend/hibernate

Touchpad doesn’t work after suspend/hibernate on Debian, I ran into this issue a while ago when I installed Debian on my MSI GT70 DRAGON EDITION laptop, this probably will apply for other laptops too.

Turns out the solution is simple, you just need to reinitialize the touchpad, can be done by simple commands.

Coding Problem - Prime Path

Coding Problem - Phone List

Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers:

Emergency 911
Alice 97 625 999
Bob 91 12 54 26

In this case, it’s not possible to call Bob, because the central would direct your call to the emergency line as soon as you had dialled the first three digits of Bob’s phone number. So this list would not be consistent.