Mediatemple (gs) and svn+ssh
Saturday, May 31, 2008
About 3 months ago, I moved my hosting to mediatemple,
and have been pretty satisfied thusfar with the level of support and
accessibility for only having a grid (shared) server account. That is,
until I tried to setup my own subversion repository. The grid accounts
only support svn+ssh, so it's a bit different from simple svn:// or
http:// access. Here's a multi-step process that should give you a
kickass setup. I mostly have it here for personal reference but I
figure it should help others out there too. I assume you're nerdy
enough to know your way around *nix.
a) Create your repo (EASY):
http://kb.mediatemple.net/article.php?id=143
b) Generate an ssh key for yourself if you don't have one already:
By default, an RSA key pair is generated and you'll want to place your private key here:
c) Upload your public key to your server and append ( or create it
) it to $HOME/.ssh/authorized_keys. There are plenty of fancy ways to
do this, but the easiest would be to just ftp it up and then
d) And voila! You'll no longer have to log in each time you want to
commit files. Additionally, you can use this public key for any
environment you ssh in to.
and have been pretty satisfied thusfar with the level of support and
accessibility for only having a grid (shared) server account. That is,
until I tried to setup my own subversion repository. The grid accounts
only support svn+ssh, so it's a bit different from simple svn:// or
http:// access. Here's a multi-step process that should give you a
kickass setup. I mostly have it here for personal reference but I
figure it should help others out there too. I assume you're nerdy
enough to know your way around *nix.
a) Create your repo (EASY):
http://kb.mediatemple.net/article.php?id=143
b) Generate an ssh key for yourself if you don't have one already:
$: ssh-keygenBy default, an RSA key pair is generated and you'll want to place your private key here:
$HOME/.ssh/id_rsac) Upload your public key to your server and append ( or create it
) it to $HOME/.ssh/authorized_keys. There are plenty of fancy ways to
do this, but the easiest would be to just ftp it up and then
$: cat key.pub >> authorized_keysd) And voila! You'll no longer have to log in each time you want to
commit files. Additionally, you can use this public key for any
environment you ssh in to.