You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by GregP <gr...@cgi.com> on 2009/03/18 22:28:09 UTC

Getting prompted for ssh password regardless of cvspass tag

Good Afternoon,

I am using ANT v1.5 being called from a bash script which passes in the
user.id and password through a command line call.

The following two lines exist in my build.xml file:
1)  <cvspass cvsRoot=":${cvs.conn.type}:${user.id}@${cvs.host}:<some
repository>" password="${password}" passfile=".cvspass" />
2)  <cvs cvsRoot=":${cvs.conn.type}:${user.id}@${cvs.host}:<some
repository>" failonerror="true" passfile=".cvspass" cvsRsh="ssh"
command="export -r HEAD" package="<some package>" dest="${source.dir}" />

Some background: The user executing the build is prompted to enter their
username and password so that ssh has the credentials required to export the
repository. I have echoed the various variables and the contain the proper
information.

My connection type is EXT.

The .cvspass file does not contain windows line terminators. The path to the
.cvspass file seems to be correct.

Yet, it still prompts me to enter the password!

Here is a snippet of the output:
init:
     [echo] ... Creating Build Directory ...
    [mkdir] Created dir: <path to dir>/build

checkOutSource:
     [echo] ... Checking Out <some package> From CVS ...
     [echo] ... Preparing for auto password authentication ...
      [cvs] Using cvs passfile: /<path to cvs>/.cvspass
<username>@<host>'s password:

Any help with this would be most welcome.

Thank you

Greg
-- 
View this message in context: http://www.nabble.com/Getting-prompted-for-ssh-password-regardless-of-cvspass-tag-tp22588917p22588917.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


Re: Getting prompted for ssh password regardless of cvspass tag

Posted by Stefan Bodewig <bo...@apache.org>.
Hi Greg

your question is one for the user mailing list, the dev list is the
list for the development of Ant itself.

On 2009-03-18, GregP <gr...@cgi.com> wrote:

> I am using ANT v1.5

That's pretty old, BTW.

> being called from a bash script which passes in the user.id and
> password through a command line call.

> The following two lines exist in my build.xml file:
> 1)  <cvspass cvsRoot=":${cvs.conn.type}:${user.id}@${cvs.host}:<some
> repository>" password="${password}" passfile=".cvspass" />
> 2)  <cvs cvsRoot=":${cvs.conn.type}:${user.id}@${cvs.host}:<some
> repository>" failonerror="true" passfile=".cvspass" cvsRsh="ssh"
> command="export -r HEAD" package="<some package>" dest="${source.dir}" />

It's been quite some time since I used CVS for the last time, but IIRC
the .cvspass file is only used to authenticate the user to the CVS
server in pserver sertups, it is not used to authenticate the user to
the SSH server.

The password prompt you see is the one of the SSH server.

I'd recommend setting uo ssh-agent before running Ant to avoid the
password prompt.

Stefan

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