You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Zsolt <zk...@intland.com> on 2004/01/20 10:34:30 UTC
How to port Code with Execute to SSH
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to port Code with Execute to SSH
Posted by Zsolt <zk...@intland.com>.
No,
this is the problem.
Zsolt
Antoine Lévy-Lambert wrote:
> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to port Code with Execute to SSH
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
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
Re: How to port Code with Execute to SSH
Posted by Zsolt <zk...@intland.com>.
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
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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to port Code with Execute to SSH
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
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