Configure SSH Key-Based Authentication on a Linux and Mac

2017.08.24

How To Create SSH Keys

The first step to configure SSH key authentication to your server is to generate an SSH key pair on your local computer.

To do this, we can use a special utility called ssh-keygen, which is included with the standard OpenSSH suite of tools. By default, this will create a 2048 bit RSA key pair, which is fine for most uses.

On your local computer, generate a SSH key pair by typing:
ssh-keygen

The utility will prompt you to select a location for the keys that will be generated. By default, the keys will be stored in the ~/.ssh directory within your user’s home directory. The private key will be called id_rsa and the associated public key will be called id_rsa.pub. Stick with the default location.

Copying your Public Key Using SSH-Copy-ID

The easiest way to copy your public key to the server is to use a utility called ssh-copy-id. For this method to work, you must already have password-based SSH access to your server.

Simply specify the remote host that you would like to connect to and the user account that you have password SSH access to. This is the account where your public SSH key will be copied.

The syntax is:
ssh-copy-id username@remote_host

Special thanks to https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server

Categories : Debian  OS X  Raspberry Pi  Ubuntu

Vandals caught on camera

2014.08.24

The kids in these two pictures punctured a hole in my cars front left tire and then rang out doorbell at 3:20 am on August 24, 2014.

My son and I were set for a early start to make an amusement park a few hours away. We still made the amusement park after filing our report with the sheriff. Vandalism to the car costs me time and money to repair. Taking time from an adventure with my son is unacceptable and the juveniles will be found.

I’ll be distributing the photos and information to the local middle schools.

IMG_4808.JPG

IMG_4807.JPG

Categories : Omaha

Stopping SD Card Corruption on Raspberry Pi’s Raspbian

2013.08.22
Categories : Raspberry Pi

Install Raspbian from OS X

2012.09.19

Download image from raspberrypi.org

Plug in SD card

Identify SD card
df -h

Note: /dev/disk1s1 is the disk on my MacBook Pro. You need to review and change the disk info as necessary.

Unmount
sudo diskutil unmount /dev/disk1s1

Apply image to SD card
sudo dd bs=1m if=2012-09-18-wheezy-raspbian.img of=/dev/rdisk1

Mac OSX applications won’t start after cloning or time machine restore

2012.06.20

I cloned a drive on the Mac Mini and when the clone started up everything looked in order. However, some apps were giving warnings or dumping when they started.

Twitter for Mac would ask for credentials and then fail.
MS Office 2011 kept giving a warning about the database.
Firefox was missing a profile.

Permissions seemed to be the culprit and then I ran across this forum thread. http://support.mozilla.org/my/questions/785562

The fix was as easy as:
Run this command in terminal from your home directory
sudo chown -R `id -un`:`id -gn` ~

Categories : OS X
Tags :   

Cloudmin manual restore

2012.04.26

cloudmin restore-systems –host system.tld –source /mnt/xen-backups/%M-%D-%Y

Remote VNC login to Ubuntu 12.04

2012.04.23

Installed x11vnc:
apt-get install x11vnc

Create /etc/init/x11vnc.conf file:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script

After restart, x11vnc shoud listen on vnc startard port – 5900.

Script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.

Reference: http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/

Categories : Ubuntu

Hackers

2012.04.17

…And on the 8th day, God created hackers.

He saw that this was good, for on the 9th day,

hackers used two stones to make fire.

Asterisk ARI Kicking User Out

2011.11.09

When ARI kicks a person out or the voicemails are not playing when requested. Check the directory authorizations.

chown asterisk:asterisk /var/lib/php/session

Categories : Debian  Asterisk

Removing Guest from Ubuntu 11.10

2011.11.01

To remove the guest login option you have to modify /etc/lightdm/lightdm.conf.
original
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu

modified
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

You can either reboot or restart the service.
sudo restart lightdm

Categories : Ubuntu