Archive for the ‘Big Blue blog’ Category
Setup CVS SSH Access in RAD
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
- Generate public/private key pair from Cygwin.
- 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.
- Log on to yourCVSserver.com through Cygwin
ssh userid@yourCVSserver.com
$chmod 700 .ssh to allow folder have permission -rwx—–.
- 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.
$scp id_rsa.pub userid@yourCVSserver.com:/.ssh/authorized_keys
$chmod 600 to allow file permission -rw——-
- The last thing you need to do is to set up environment variables in .bashrc file.
export CVS_RSH="ssh"
export CVSROOT=":ext:userid@yourCSSservr.com:/var/cvsroot"
- log out of CVS server and log in again. This time you should be able to log in without being asked for a password.
- Setting up CVS client on RAD
- Enable CVS team capability
- In “Select Perspective” pane, select “CVS Repository Exploring”. Setup a new CVS connection
- 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.