• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant checkout CVS using SSH

 
Scott Presley
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my source tree in a CVS repository that uses SSH instead of the pserver. I'm creating an ant script to perform a nightly build. I want to checkout the source from CVS, compile it, build the jars, and depoly it to the server. I've completed writing the script, but when the CVS target is executed it asks for my password to login to the cvs server.

I've lookked through the ant forum here and tried to do some googling to find an answer but really didn't find much. Is it possible to automate a build that checks source out of CVS with SSH? If not is there another build tool that might work?

Thanks in advance,
Scott
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SSH can be configured to use certificates for authentication against a server (rather than a password).

If you were to create a ssh certificate that doesn't have a passphrase (kinda bad), and you are using CVS_RSH=ssh then you should be able to silently checkout.

There have been a couple of posts in the "Linux" forum about how to configure ssh with certificates I think, either that or use google
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you should create a public/private combination, with no passphrase.
That works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic