Michael Mayhew wrote: > Rohan, > > I had tried to access the CVS repository from a SSH terminal on my > windows machine and and having some trouble. Is it possible to use a > SSH session emulator in Windows (like putty) and checkout the new > source code. If so, what would the command be? If not, what setup > should I be using? > > TIA > Michael Michael, On my windows machine, I have Cygwin CVS and Tortoise. I am using putty's PLINK.EXE as my SSH client , puttygen.exe, pagent.exe so I did the following: 1) Used putty's 'puttygen' to generate a key, after the key is created you may want to cut-and-paste the "Public key for pasting into OpenSSH authorized_keys2 file". This information is on the top of the dialog (starts with ssh-rsa --------- rsa-key. Save the public and private key in two different files, say for example: C:\SecureKeys\MichaelPubKey.PPK and c:\SecureKeys\MichaelPrivKey.PPK NOTE: You want to select for the 'Parameters' , (SSH2RSA) Because the bioinformatics.org site is using SSH2 on the server side. 2) Then , using putty.exe to create your session for putty/plink. The TABS of interest are: Session, Connection and SSH. <Session> Host Name (or IP Address): bioinformatics.org Saved Sessions: type in bioinformatics.org or some session name that you want, This will be the name of the session that you are going to use when you set the CVSROOT env variable. <Connection> Auto-login username: pytron <SSH> Preferred SSH protocol version: (Select 2) <SSH->Auth> Private key file for authentication:: (Browse and Select) c:\SecureKeys\MichaelPrivKey.PPK Click on the <Session> tab, then Save the session. Click on Load to test it out ( you should be prompted to login to the bioinformatiocs.org machine, then LOGIN... On bioinformatics.org machine: 1) create a directory .ssh and change the access to rwx----- mkdir .ssh;chmod 700 .ssh 2) REMEMBER the text that you cut-and-pasted when generating the keys; that is going to be the content of a file called 'authorized_keys'. The text should be one-line with no line-breaks. Make sure the file is read-write for you only (chmod 700 authorized_keys). Ok back in Windows- 1) In a DOS prompt, make sure your PATH is set to where plink.exe is located and attempt to connect by typing: plink bioinformatics.org , that is plink <sessionname>. If everything was set-up ok , you should have logged in without typing in a password. NOW you should be able to set the CVS_RSH and CVSROOT the check out set CVS_RSH=plink set CVSROOT=:ext:pytron@bioinformatics.org:/cvsroot cvs co guiblast OR with Tortoise SETTINGS- In Preferences <SSH> SSH application: C:\pathtoplinkdir\plink.exe <Quirky> CVS application: C:\wincvs\cvs.exe <you should have installed wincvs <Main> External diff application: ExamDiff.exe [ search the web and download this program] Set Protocol to Secure shell (:ext:) Server to "bioinformatics.org" <note the sessionname> Repository to /cvsroot Username to pytron and Module to guiblast or have it discovery the available modules "Fetch list" Hope this helps and let me know what happened. Rohan.