[ajug-members] Ant and CVS
jasonday at worldnet.att.net
Tue Feb 8 17:57:50 EST 2005
On Tue, Feb 08, 2005 at 04:36:40PM -0500, Roy Wells wrote:
> A question for the ANT gurus out there. Is there a way to tell the
> ANT cvs task to load an ssh private key from a non standard location.
There's nothing ant can do about it; the ant cvs task essentially acts
as a proxy to a cvs executable, and cvs invokes ssh as if it were rsh.
There's no way that I know of to pass options to the ssh process, other
than through ~/.ssh/config.
> I want anyone to be able to log into the build box and kick off a
> build, but if you don't log in as the build account it can't find the
> ssh key because it's looking in the default ~/.ssh for the key. I'd
> like to put the key for the build account in the directory with the
> build script. I don't see anything in the ant cvs task docs that
> explains how to do this though.
You would have to configure ssh to do this, not ant. You could edit the
~/.ssh/config file for all the users you want to give access to, and
change the IdentityFile to point to the key in the build directory, but
it would be much easier to just copy the key to everyone's ~/.ssh
directory. A more secure option would be to have everyone generate
their own key, then append the public keys to the authorized_keys file
on the cvs server.
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
More information about the ajug-members