Ambriel Consulting

SSH agent and OS X

January 9th, 2008 by sjb

For 10.4, This little script makes sure you have your ssh keys in your shell, with the agent running. SSH agent is already available in 10.5.

if [ -f ~/.agent.env ]; then
  . ~/.agent.env -s > /dev/null

  if ! kill -0 $SSH_AGENT_PID > /dev/null 2>&1; then
    echo
    echo "Stale agent file found.  Spawning new agent..."
    eval `ssh-agent -s | tee ~/.agent.env`
    ssh-add
  fi
else
  echo "Starting ssh-agent..."
  eval `ssh-agent -s | tee ~/.agent.env`
  ssh-add
fi

Changing the OS X Leopard (10.5.x) login background image

January 6th, 2008 by sjb

In terminal,

sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/Library/Desktop Pictures/Plants/Leaves.jpg"

There, that’s better.