ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: How to port Code with Execute to SSH
Date Tue, 20 Jan 2004 15:19:47 GMT
Zsolt wrote:

> Hi Antoine,
>
> I have to access the CVS repository using a (SSH) password, thus it is 
> not enough just to set an environment variable because I have to pass 
> the username and password to the remote SSH server.
>
> Zsolt
>
Can your users append their public key to the file 
$HOME/.ssh/authorized_keys2 on the target system ? In this case there is 
no need to enter user/password.

Cheers,

Antoine

>
> Antoine Lévy-Lambert wrote:
>
>> Zsolt wrote:
>>
>>> Hi,
>>>
>>> we have customized AbstractCvsTask to our needs but we need to 
>>> support SSH. AbstractCvsTask uses the class 
>>> org.apache.tools.ant.taskdefs.Execute. How can I modify my code to 
>>> support both?
>>>
>>> Zsolt
>>>
>>>
>>>
>> I think that you should not have needed to customize AbstractCvsTask 
>> to support cvs over ssh, just set the environment variable CVS_RSH to 
>> "ssh".
>>
>> This of course requires the users to have both a cvs.exe and a 
>> ssh.exe in their path, and probably to have already run at least once 
>> an interactive ssh to the host where the cvs server is residing, so 
>> that it is entered in in $HOME/.ssh/known_hosts.
>>
>> The ssh implementation which comes bundled with cygwin rocks, and you 
>> can use it outside of the cygwin environment provided that the cygwin 
>> binaries and dlls are in the path.
>>
>> But maybe you are trying to run cvs across the jsch Java ssh 
>> implementation ? I understand that this would require a customization 
>> of the cvs tasks.
>>
>> Cheers,
>>
>> Antoine
>>
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message