Here's a gist which helps you install mosh on Dreamhost: https://gist.github.com/andrewgiessel/4486779