Setting up SSH on Mediatemple

Even though I’m not a big fan of the ‘grid server’ exageration, I do find the Mediatemple hosting to be ok for a $20 a month hosting service. Once I got setup, the first thing that I wanted was ssh access. They provide this and it works well.

Here is what you have to do to setup ssh key access to your account and even use it without a password.

  • Go to your account panel under ‘Server Administrator’ and turn on SSH access
  • Login to the box using ssh or PuTTY with the account and password given on the account panel
  • Create a directory called ‘.ssh’
  • Do a ‘chmod 700 .ssh’
  • ‘cd .ssh’
  • Create a file named authorized_keys.
  • Put your PUBLIC ssh key into the ‘authorized_keys’ file. Make sure it is just 1 line.
  • ‘chmod 600 authorized_keys’

Now login to your account. If you don’t have a password on your private key or you use Pageant or and SSH-agent, you will just be logged in. I use this all the time to just ‘scp’ files to the server.

This entry was posted in General. Bookmark the permalink.

2 Responses to Setting up SSH on Mediatemple

  1. Chris Hobbs says:

    I had to name the file authorized_keys2

  2. Sumit Khanna says:

    I recently migrated from BlueHost to MediaTemple. Do you get SSH disconnect/timeout issues? My ssh connection will auto-disconnect after 15 min or so without activity. I know it seems like this might be an automatic thing, but when you log back in and do a ps -ef, you’ll see the old connection is still active! It seems like they must be using a proxy for their ‘grid computing’ that likes to drop connections (like most proxies do)

Leave a Reply

Your email address will not be published.