Using SSH to connect to CVS

  • Revision slug: Using_SSH_to_connect_to_CVS
  • Revision title: Using SSH to connect to CVS
  • Revision id: 170019
  • Created:
  • Creator: Edburns@acm.org
  • Is current revision? No
  • Comment /* Generating an SSH key */

Revision Content

  1. #Introduction
  2. #Generating an SSH key
  3. #Setting up CVS to use SSH
  4. #Dealing with Firewalls
  5. #Avoiding passphrase requests

Introduction

This document is a guide to setting up access to cvs.mozilla.org using ssh.

This document assumes that you already have a write-access CVS account to cvs.mozilla.org. Anonymous/read-only access via SSH is not available at this time. Please see our source code page for directions accessing read-only CVS, and our getting write access page for directions on obtaining write access.

Generating an SSH key

First, install ssh. Most Linux, BSD, and OSX distributions come with it installed already. Cygwin makes ssh available on Windows if you install the openssh package from the Net category. If all else fails, [OpenSSH] is a widely used and highly portable implementation. The following command should generate a suitable key pair:

<code>
ssh-keygen -t dsa
</code>

This will take a moment, followed by a prompt for a passphrase. Once you have entered a passphrase, ssh-keygen will create two files,

<code>
~/.ssh/id_dsa
</code>

and

<code>
~/.ssh/id_dsa.pub
</code>

Do not send id_dsa.

Do file a Server Operations bug in [Bugzilla] and attach your id_dsa.pub to the bug.

Revision Source

<ol><li> <a href="#Introduction">#Introduction</a>
</li><li> <a href="#Generating_an_SSH_key">#Generating an SSH key</a>
</li><li> <a href="#Setting_up_CVS_to_use_SSH">#Setting up CVS to use SSH</a>
</li><li> <a href="#Dealing_with_Firewalls">#Dealing with Firewalls</a>
</li><li> <a href="#Avoiding_passphrase_requests">#Avoiding passphrase requests</a>
</li></ol>
<h2 name="Introduction"> Introduction </h2>
<p>This document is a guide to setting up access to cvs.mozilla.org using ssh. 
</p>
<blockquote>
This document assumes that you already have a write-access CVS account to cvs.mozilla.org. Anonymous/read-only access via SSH is not available at this time. Please see our <a href="en/Mozilla_Source_Code_(CVS)">source code page</a> for directions accessing read-only CVS, and our <a href="en/Getting_commit_access_to_Mozilla_source_code">getting write access page</a> for directions on obtaining write access. 
</blockquote>
<h2 name="Generating_an_SSH_key"> Generating an SSH key </h2>
<p>First, install ssh. Most Linux, BSD, and OSX distributions come with it installed already. Cygwin makes ssh available on Windows if you install the openssh package from the Net category. If all else fails, [<a class="external" href="http://www.openssh.com/">OpenSSH</a>] is a widely used and highly portable implementation. The following command should generate a suitable key pair: 
</p>
<pre>&lt;code&gt;
ssh-keygen -t dsa
&lt;/code&gt;</pre>
<p>This will take a moment, followed by a prompt for a passphrase. Once you have entered a passphrase, ssh-keygen will create two files, 
</p>
<pre>&lt;code&gt;
~/.ssh/id_dsa
&lt;/code&gt;</pre>
<p>and
</p>
<pre>&lt;code&gt;
~/.ssh/id_dsa.pub
&lt;/code&gt;</pre>
<p>Do <strong>not</strong> send <i>id_dsa</i>.
</p><p><strong>Do</strong> file a Server Operations bug in [<a class="external" href="https://bugzilla.mozilla.org/">Bugzilla</a>] and attach your <i>id_dsa.pub</i> to the bug.
</p>
Revert to this revision