tekJutsu's Blog

A weblog about technical stuff

Setup CVS SSH Access in RAD

leave a comment »

 

Rational Application Developer provides excellent client interface for CVS integration. It gives quick access to CVS server in its CVS Repository Perspective. Its visual Team Synchronizing interface allows easy synchronizing of code in the developer’s workspace with CVS code. The following steps describe how to setup CVS client in Rational Application Developer and access CVS server using SSH connection. The local machine is Windows. CVS is on a Unix server.

Pre-requisite

Cygwin or Putty to access CVS server. The following example is using Cygwin. (http://www.cygwin.com)

Steps

  1. Generate public/private key pair from Cygwin.
    1. This step generates an output file id_rsa.pub (public key) and id_rsa (private key)

      Open Cygwin and type:  $ssh keygen
      Enter default information at prompt. I usually enter an empty passphrase. This will allow you to log on to the server later without being prompted for a passphrase.

    1. Log on to yourCVSserver.com through Cygwin
    2. ssh userid@yourCVSserver.com
      $chmod 700 .ssh  to allow folder have permission -rwx—–.

    1. Transfer the public key id_rsa.pub to .ssh folder of user home directory on yourCVSserver.com. Copy the contents of the public key to .ssh/authorized_keys. If you already have keys for another server, copy to .ssh/authorized_keys1.
    2. $scp id_rsa.pub userid@yourCVSserver.com:/.ssh/authorized_keys
      $chmod 600 to allow file permission -rw——-

    1. The last thing you need to do is to set up environment variables in .bashrc file.
    2. export CVS_RSH="ssh"
      export CVSROOT=":ext:userid@yourCSSservr.com:/var/cvsroot"

    1. log out of CVS server and log in again. This time you should be able to log in without being asked for a password.
  1. Setting up CVS client on RAD
    1. Enable CVS team capability

 

    1. In “Select Perspective” pane, select “CVS Repository Exploring”. Setup a new CVS connection

 

    1. Once you entered all the properties for the new location, you will be able to SSH connect to CVS server and check out source code from repository.

 

Written by tekjutsu

February 12, 2010 at 12:11 pm

Posted in Big Blue blog

Tagged with , , ,

Leave a comment