Dad bod must die

My baby girl is now 1 year old.  Man how time flies.  And during that time man how I’ve let myself go.  Pushing 170 and not having the muscle mass to justify it and my loving wife remarking that “Hey I used to not be able to wrap my hands around your arms but now I totally can!” has forced me to reckon with the inevitable truth that I have become a fatter and weaker shadow of myself.

Today marks the beginning of the journey.

My stats are not impressive but they are as my friend calls it: a starting point

  1. Completely gassed in a game of 21 but still scores enough to be competitive but not win the game.
  2. 4 sets of 10 reps at 110 on the abs machine
  3. 4 sets both sides of 10 reps of 25 lbs of weighted oblique incline lifts.
  4. 6 sets of 135 lbs on the incline bench. Sigh I used to be able to do 210
  5. 4 sets of 4 reps of unweighted dips.  I used to be able to easily do 4 sets of 10

I will take this as a start.  Tomorrow is another day to fight!

Recovering from losing all ssh access Ubuntu 16.04

So I managed to lock myself out of my own computer.

I installed mysecureshell and didn’t realize that it disables shell access, which was my only way to control the machine.

So what did I do?

  1. Recover the root password
    1. Boot into recovery mode
      1. Restart Ubuntu and when the Grub menu comes up
      2. Select Ubuntu “Advanced options”
      3. Then select “Drop to root shell prompt”
    2. Remount /
      mount -rw -o remount /
    3. Reset password
      sudo passwd
    4. Reboot
  2. Re-enable SSH
    1. Now you should be able to ssh remotely as root.  So ssh into the machine as root and provide the password
    2. vi /etc/ssh/sftp_config
    3. under the <Default> section make sure that you have the following
      Shell                   /bin/bash
    4. Restart mysecureshell
      service mysecureshell restart

When mysecureshell disables shell on Ubuntu 16.04…

When I installed mysecureshell to setup sftp for my Ubuntu 16.04 server, it decided to do a lot of other things like…disable ssh access.

I don’t know why they don’t tell you this in screaming caps to begin with.

But a quick look at the Shell directive (http://mysecureshell.readthedocs.io/en/latest/tags/childs/shell.html) reveals that indeed if you install mysecureshell, it will turn it off by default.

I’m not necessarily opposed to that as a practice but they should make that really obvious as it took me quite some time to figure out what it was that made mysecureshell turn it off in the first place.

I installed mysecureshell via apt-get and configure sftp but then suddenly I got:

$ ssh user@server
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

22 packages can be updated.
0 updates are security updates.


Last login: Thu Feb 2 01:27:02 2017 from 10.10.10.10
Shell access is disabled !Connection to server closed.

What gives?  I didn’t change SSH access…I added SFTP.  Or did I?  So yes, installing mysecureshell will in fact disable SSH access by default.

Adding the directive

Shell /bin/bash

to the <Default> parent tag will re-enable ssh access.