You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jose Gonzalez Gomez <jg...@gmail.com> on 2005/10/20 16:16:56 UTC

[M2] SCP nightmare in Windows

Hi there,

Is anybody successfully using SCP with public key authentication
deployment under Windows with Maven 2.0? My current problems:

1. Using scp:
  1.1 You either have to put your private key passphrase in the
settings.xml file or have an unprotected private key.
  1.2 Maven cannot stablish the authenticity of the host. No matter
how many times I answer yes, Maven keeps on telling me that it cannot
stablish the authenticity of the host, showing me its RSA key and
asking me if I want to continue connecting. After 20 times I start
getting tired.

2. Using scpexe (well, trying to):
  2.1 I'm using Putty/Plink, but wagon-ssh-external uses by default
ssh/scp as the executables, and I don't know how to tell him to use
plink, although the code seems to be prepared to be configured and
even has some references to plink.

Please, if anybody know the magic incantations needed to make it work
(keeping plink), please, please, share it

Thanks in advance, best regards
Jose

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M2] SCP nightmare in Windows

Posted by Marcin Cetnarski <ma...@tiger.com.pl>.
Witaj Jose,

W Twoim liœcie datowanym 20 October 2005 (16:16:56) mo¿na przeczytaæ:

Hello,

JGG> Hi there,

JGG> Is anybody successfully using SCP with public key authentication
JGG> deployment under Windows with Maven 2.0? My current problems:

Well, I tried many possibilites  (almost all combinations ;)) with
m2beta3 and maven2.0


JGG> 1. Using scp:
JGG>   1.1 You either have to put your private key passphrase in the
JGG> settings.xml file or have an unprotected private key.
JGG>   1.2 Maven cannot stablish the authenticity of the host. No matter
JGG> how many times I answer yes, Maven keeps on telling me that it cannot
JGG> stablish the authenticity of the host, showing me its RSA key and
JGG> asking me if I want to continue connecting. After 20 times I start
JGG> getting tired.

- with beta3 seems to not working but try place path to dsa (not rsa)
private key (for me is not working with java scp library), so I tried
a native scp library.


JGG> 2. Using scpexe (well, trying to):
JGG>   2.1 I'm using Putty/Plink, but wagon-ssh-external uses by default
JGG> ssh/scp as the executables, and I don't know how to tell him to use
JGG> plink, although the code seems to be prepared to be configured and
JGG> even has some references to plink.

Putty doesn't not seem to be ideal native ssh library cause it hasn't
-o option. I use SSH Secure Shell from ssh.com (free version for
windows), (you must change exec names to ssh and scp). This
configurations works but there are also small errors ...

And also use 1.0-alpha-4 version of wagon-ssh-external - 1.0-alpha-5 -
not work for me.


With maven2.0 I can't install arifact in my local repository so deploy
doesn't work - site deploy works with java scp (it ignores my dsa key - prompt for
password) but fail in unziping site docs.

JGG> Please, if anybody know the magic incantations needed to make it work
JGG> (keeping plink), please, please, share it


JGG> Thanks in advance, best regards
JGG> Jose

JGG> ---------------------------------------------------------------------
JGG> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
JGG> For additional commands, e-mail: users-help@maven.apache.org



-- 
Best regards,
 Marcin Cetnarski


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M2] SCP nightmare in Windows

Posted by Stephen Duncan <st...@gmail.com>.
Since it didn't get fixed for 2.0, I created a bug for that problem:
http://jira.codehaus.org/browse/MNG-1255

-Stephen

On 10/20/05, Jose Gonzalez Gomez <jg...@gmail.com> wrote:
> Just creating the directory made it work, thanks a lot
> Jose
>
> 2005/10/20, Stephen Duncan <st...@gmail.com>:
> > On the RSA key:  Make sure that you have a folder C:\Documents And
> > Settings\yourusername\.ssh
> >
> > Potentially make sure you have a known_hosts file in that directory if
> > it still doesn't work.  The issue is that it's not creating that file,
> > most likely, so it asks for every attempt to use scp.  At least, that
> > was my issue with the release candidate, though I thought it was going
> > to be fixed for 2.0 final...
> >
> > -Stephen
> >
> > On 10/20/05, Jose Gonzalez Gomez <jg...@gmail.com> wrote:
> > > Hi there,
> > >
> > > Is anybody successfully using SCP with public key authentication
> > > deployment under Windows with Maven 2.0? My current problems:
> > >
> > > 1. Using scp:
> > >   1.1 You either have to put your private key passphrase in the
> > > settings.xml file or have an unprotected private key.
> > >   1.2 Maven cannot stablish the authenticity of the host. No matter
> > > how many times I answer yes, Maven keeps on telling me that it cannot
> > > stablish the authenticity of the host, showing me its RSA key and
> > > asking me if I want to continue connecting. After 20 times I start
> > > getting tired.
> > >
> > > 2. Using scpexe (well, trying to):
> > >   2.1 I'm using Putty/Plink, but wagon-ssh-external uses by default
> > > ssh/scp as the executables, and I don't know how to tell him to use
> > > plink, although the code seems to be prepared to be configured and
> > > even has some references to plink.
> > >
> > > Please, if anybody know the magic incantations needed to make it work
> > > (keeping plink), please, please, share it
> > >
> > > Thanks in advance, best regards
> > > Jose
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M2] SCP nightmare in Windows

Posted by Jose Gonzalez Gomez <jg...@gmail.com>.
Just creating the directory made it work, thanks a lot
Jose

2005/10/20, Stephen Duncan <st...@gmail.com>:
> On the RSA key:  Make sure that you have a folder C:\Documents And
> Settings\yourusername\.ssh
>
> Potentially make sure you have a known_hosts file in that directory if
> it still doesn't work.  The issue is that it's not creating that file,
> most likely, so it asks for every attempt to use scp.  At least, that
> was my issue with the release candidate, though I thought it was going
> to be fixed for 2.0 final...
>
> -Stephen
>
> On 10/20/05, Jose Gonzalez Gomez <jg...@gmail.com> wrote:
> > Hi there,
> >
> > Is anybody successfully using SCP with public key authentication
> > deployment under Windows with Maven 2.0? My current problems:
> >
> > 1. Using scp:
> >   1.1 You either have to put your private key passphrase in the
> > settings.xml file or have an unprotected private key.
> >   1.2 Maven cannot stablish the authenticity of the host. No matter
> > how many times I answer yes, Maven keeps on telling me that it cannot
> > stablish the authenticity of the host, showing me its RSA key and
> > asking me if I want to continue connecting. After 20 times I start
> > getting tired.
> >
> > 2. Using scpexe (well, trying to):
> >   2.1 I'm using Putty/Plink, but wagon-ssh-external uses by default
> > ssh/scp as the executables, and I don't know how to tell him to use
> > plink, although the code seems to be prepared to be configured and
> > even has some references to plink.
> >
> > Please, if anybody know the magic incantations needed to make it work
> > (keeping plink), please, please, share it
> >
> > Thanks in advance, best regards
> > Jose
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M2] SCP nightmare in Windows

Posted by Stephen Duncan <st...@gmail.com>.
On the RSA key:  Make sure that you have a folder C:\Documents And
Settings\yourusername\.ssh

Potentially make sure you have a known_hosts file in that directory if
it still doesn't work.  The issue is that it's not creating that file,
most likely, so it asks for every attempt to use scp.  At least, that
was my issue with the release candidate, though I thought it was going
to be fixed for 2.0 final...

-Stephen

On 10/20/05, Jose Gonzalez Gomez <jg...@gmail.com> wrote:
> Hi there,
>
> Is anybody successfully using SCP with public key authentication
> deployment under Windows with Maven 2.0? My current problems:
>
> 1. Using scp:
>   1.1 You either have to put your private key passphrase in the
> settings.xml file or have an unprotected private key.
>   1.2 Maven cannot stablish the authenticity of the host. No matter
> how many times I answer yes, Maven keeps on telling me that it cannot
> stablish the authenticity of the host, showing me its RSA key and
> asking me if I want to continue connecting. After 20 times I start
> getting tired.
>
> 2. Using scpexe (well, trying to):
>   2.1 I'm using Putty/Plink, but wagon-ssh-external uses by default
> ssh/scp as the executables, and I don't know how to tell him to use
> plink, although the code seems to be prepared to be configured and
> even has some references to plink.
>
> Please, if anybody know the magic incantations needed to make it work
> (keeping plink), please, please, share it
>
> Thanks in advance, best regards
> Jose
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org