Category Archives: Tips

Creating ssh keys for password-less sign on to remote systems

Below is the process required for setting up password-free sign in for “user” at a server called “”. I’ve added links to “Explain Shell” throughout so you can see an overview of what the commands and arguments do.

First, create your .ssh directory by issuing the command mkdir -m 700 -p ~/.ssh.

Secondly create the keypair: ssh-keygen -t rsa -b 2048 -f ~/.ssh/ The filename ( can be anything you want, but it’s easiest to use a name that hints at for what server you’ve generated the keys.

You’ll be prompted for a passphrase for the key. This isn’t required, but is recommended. You can generate and store your passphrase in your OS’s keychain manager. The Mac has Keychain. Linux offers KWallet or Seahorse. You can also use a password manager like 1Password. Keep in mind, though, that using a password manager will likely negate the “passwordless” bit of the process unless it has the kind of OS integration the aforementioned keychain managers have.

You’ll now have two key files in ~/.ssh: a private key called and a public key called

Next, you need to add the public key to the remote server to which you’d like to sign in. To do that, use the script ssh-copy-id. If you’re on a Mac, you need to first get that script via homebrew. Install brew, then run brew install ssh-copy-id.

Push the key up to by issuing the command ssh-copy-id -i ~/.ssh/ When prompted for a password, use the password you normally use to sign on to the system, not your key’s passphrase.

The sign into the remote system using the new keypair, use the command ssh -i ~/.ssh/ The first time you do so, your OS will prompt you for the passphrase. Enter it, and allow your OS to save the passphrase to the keychain for passwordless log in.

Once the credentials have been added to the remote system, it’s handy to add the host, user, and key to your ssh config. Detailed instructions can be found on Nerderati.

Quickly adding a link to the iOS Simulator

I was looking for a way to easily add a link to the iOS Simulator in my ~/Applications folder, but every explanation that worked for Mavericks seemed unnecessarily complicated to me. Here’s what I figured out myself:

  1. Open Xcode and launch the simulator as normal
  2. Control-click on the simulator icon in the dock, and select Options → Show in Finder
  3. Open a terminal, and type ln -s
  4. Drag the simulator icon to the terminal window
  5. Drag the destination for the link to the terminal window, and hit Enter

Hiding the WD Smartware virtual CD on a Mac

I really like Western Digital MyBook Essential drives. They’re inexpensive, they last (my 1TB drive is four or five years old, and survived moving between continents), and they’re reasonably quick. They have one drawback: a virtual CD they mount constantly. I’ve hidden the VCD on one of my drives using the WD software, but the other one keeps coming back. You can follow the process I gave for hiding partitions to hide this VCD:

  • First, run diskutil list | grep SmartWare to get your device identifier
  • Second, get your UUID following the process in the other post
  • Lastly, using vifs, add a line to your fstab that looks like this: UUID=9B5B83B0-58E6-3EC1-8472-4B300F6853E5 none hfs ro,noauto (replacing my UUID with your own)

Brown rice made easy

Yup, I’m posting what could loosely be called a “recipe”. These instructions will give you quality brown rice with the minimum of fuss.

  1. Measure 2.5 cups of water into saucepan with tight-fitting lid, and bring to boil. Add 1-2 tsp of butter or olive oil (optional). Salt to taste
  2. Stir in 1 cup of brown rice
  3. Cover saucepan, lower the heat, and simmer for 35-40 min (until moisture is absorbed)
  4. Remove from heat, allow to sit for 5 min. Fluff with fork

Go forth and starchify.