SSH crash course


SVN crash course – Tovid Wiki – a Wikia wiki
Automated secure login

Normally, when you do anything with svn, you’ll be prompted for your SourceForge.net password. If you’re sick of typing it repeatedly, you can do secure, automated login with ssh-agent. Here’s how:

First, create authentication keys that will be used to verify your identity (If you have files ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub, you can skip this step):

$ ssh-keygen -t rsa

Next, copy your public key to sourceforge.net, so it can authenticate you on future logins:

$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@shell.sourceforge.net

Then, before you startx or after you open a new terminal, start the ssh-agent and add your public keys to the session:

$ ssh-agent bash
$ ssh-add

No more passwords–and you’re still getting logged in securely!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s