version 1.158, 2001/09/26 07:31:49 |
version 1.159, 2001/10/14 15:35:28 |
|
|
</dl> |
</dl> |
|
|
<p> |
<p> |
<b>NOTE:</b> For users wishing to use ssh, you must first set the |
<b>NOTE:</b> For users wishing to use rsh, you must first set the |
<var>CVS_RSH</var> variable to ssh. |
<var>CVS_RSH</var> variable to rsh. |
|
|
<ul> |
<ul> |
<li>For Korn/Bourne shells: |
<li>For Korn/Bourne shells: |
<pre> |
<pre> |
$ <b>export CVS_RSH=/usr/bin/ssh</b> |
$ <b>export CVS_RSH=/usr/bin/rsh</b> |
</pre> |
</pre> |
<li>For csh/tcsh: |
<li>For csh/tcsh: |
<pre> |
<pre> |
% <b>setenv CVS_RSH /usr/bin/ssh</b> |
% <b>setenv CVS_RSH /usr/bin/rsh</b> |
</pre> |
</pre> |
</ul> |
</ul> |
|
|
|
|
set your <var>CVSROOT</var> environment variable to one of |
set your <var>CVSROOT</var> environment variable to one of |
the following values: |
the following values: |
<p> |
<p> |
<em>Please see the note about using ssh vs. rsh below!</em> |
<em>Please see the note about <a href="#WHICH">ssh vs. rsh</a> below!</em> |
<p> |
<p> |
<ul> |
<ul> |
<li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br> |
<li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br> |
|
|
<h3><a name="WHICH"><font color="#0000e0">Use rsh(1) or ssh(1)?</font></a></h3> |
<h3><a name="WHICH"><font color="#0000e0">Use rsh(1) or ssh(1)?</font></a></h3> |
|
|
<p> |
<p> |
<strong>Anoncvs: rsh vs. ssh</strong> |
By default, the CVS client uses ssh ("secure shell": |
<br> |
<a href="http://www.openssh.com/">OpenSSH</a>) to talk to the CVS server. |
By default, the CVS client uses rsh to talk to the CVS server. Many |
|
of the CVS sites no longer support rsh for security reasons or a local |
|
problem like a firewall or imperfect protocol emulator such as slirp |
|
may prevent you from using rsh. |
|
The alternative is a to use a "secure shell" connection using |
|
<a href="http://www.openssh.com/">OpenSSH</a>. |
|
|
|
<p> |
<p> |
Once ssh is installed, one sets the environment variable |
Many of the CVS sites no longer support rsh for security reasons. Local |
<var>CVS_RSH</var> to point to ssh (typically |
problems like firewalls or imperfect protocol emulators such as slirp may |
<strong>/usr/bin/ssh</strong>). If your local site prevents you |
also hinder rsh usage. However, if rsh is desired, one must set the |
from connecting out to port 22 (which ssh defaults to using) use port |
<var>CVS_RSH</var> environment variable to point to rsh |
2022. |
(typically <strong>/usr/bin/rsh</strong>). |
|
|
<p> |
<p> |
Do not be tempted to turn on compression since CVS already compresses. |
If local policy prevents outgoing connections to ssh's default port of 22, |
Use something like the following in your <strong>$HOME/.ssh/config</strong> |
port 2022 may be used in its place. Note, however, that not all anoncvs |
file. Note that not all anoncvs servers allow ssh connections on |
servers accept ssh connections on this port. Furthermore, most anoncvs servers |
port 2022. Also note that most anoncvs servers no longer accept |
no longer accept the <strong>none</strong> cipher, as it is disabled in |
the <strong>none</strong> cipher as it is disabled in recent |
recent versions of ssh for sercurity reasons. Also, do not be tempted |
versions of ssh for security reasons. |
to turn on compression: CVS already compresses. |
|
|
|
<p> |
|
One could specify something like the following in the |
|
<strong>$HOME/.ssh/config</strong> configuration file to avoid the pitfalls |
|
and restrictions mentioned above: |
<pre> |
<pre> |
Host anoncvs.ca.openbsd.org |
Host anoncvs.ca.openbsd.org |
|
Compression no |
Port 2022 |
Port 2022 |
</pre> |
</pre> |
|
|