You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cody Zhang <Co...@infowarelab.com> on 2008/03/17 03:45:56 UTC

答复: deployment through tunnel

Copy scpexe to windows path??

-----邮件原件-----
发件人: Kallin Nagelberg [mailto:kallin.nagelberg@gmail.com] 
发送时间: 2008年3月17日 3:47
收件人: Maven Users List
主题: Re: deployment through tunnel

I should also note that I can successfully SSH with
ssh -p 9000 user@localhost

So I can ssh and scp manually just fine.

On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg <
kallin.nagelberg@gmail.com> wrote:

> I've been struggling forever trying to use the deploy plugin through a
> tunnel into my office.
>
> There is a repository, call it maven.int.office.com.
>
> I have a tunnel, from localhost:9000 to maven.int.office.com:22.
>
> Using the following command I can SCP files to it at will:
> scp -P9000 somefile.txt user@localhost:.
>
>
> The distribution management section of my pom looks like this:
> <distributionManagement>
>         <repository>
>             <id>dev</id>
>             <name>Repository</name>
>             <url>scpexe://localhost:9000/home/cm/maven/dev</url>
>         </repository>
>     </distributionManagement>
>
>
>
> And my settings file has the following:
> <servers>
>       <server>
>       <id>dev</id>
>       <username>user</username>
>       <passphrase>password</passphrase>
>       <privateKey>myPuttyKey</privateKey>  <!-- I SHOULDNT NEED THIS AS
> ITS USED IN THE TUNNEL -->
>       <configuration>
>         <sshExecutable>ssh</sshExecutable>
>         <scpExecutable>scp</scpExecutable>
>       </configuration>
>       </server>
>   </servers>
>
>
> All I get when I run mvn deploy is
>
> Uploading: scpexe://localhost:9006/home/cm/maven/dev/......etcetc
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error executing command for transfer
>
> Exit code 255 - Permission denied (publickey,keyboard-interactive).
>
>
> I should note that when I run SCP directly, I am prompted for a password.
> When I run mvn deploy, I receive no prompt, just the error message.
> Is there way to prevent mvn from trying to use a key file? I'm so stuck,
> I've tried everything. Please help!
>

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


Re: 答复: deployment through tunnel

Posted by Kallin Nagelberg <ka...@gmail.com>.
It doesn't seem to have any problem executing scp. There seems to be a
problem with deploy plugin, as it's generating permission problem even
though I have no problem connecting with scp and ssh manually.

2008/3/16 Cody Zhang <Co...@infowarelab.com>:

> Copy scpexe to windows path??
>
> -----邮件原件-----
> 发件人: Kallin Nagelberg [mailto:kallin.nagelberg@gmail.com]
> 发送时间: 2008年3月17日 3:47
> 收件人: Maven Users List
> 主题: Re: deployment through tunnel
>
> I should also note that I can successfully SSH with
> ssh -p 9000 user@localhost
>
> So I can ssh and scp manually just fine.
>
> On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg <
> kallin.nagelberg@gmail.com> wrote:
>
> > I've been struggling forever trying to use the deploy plugin through a
> > tunnel into my office.
> >
> > There is a repository, call it maven.int.office.com.
> >
> > I have a tunnel, from localhost:9000 to maven.int.office.com:22.
> >
> > Using the following command I can SCP files to it at will:
> > scp -P9000 somefile.txt user@localhost:.
> >
> >
> > The distribution management section of my pom looks like this:
> > <distributionManagement>
> >         <repository>
> >             <id>dev</id>
> >             <name>Repository</name>
> >             <url>scpexe://localhost:9000/home/cm/maven/dev</url>
> >         </repository>
> >     </distributionManagement>
> >
> >
> >
> > And my settings file has the following:
> > <servers>
> >       <server>
> >       <id>dev</id>
> >       <username>user</username>
> >       <passphrase>password</passphrase>
> >       <privateKey>myPuttyKey</privateKey>  <!-- I SHOULDNT NEED THIS AS
> > ITS USED IN THE TUNNEL -->
> >       <configuration>
> >         <sshExecutable>ssh</sshExecutable>
> >         <scpExecutable>scp</scpExecutable>
> >       </configuration>
> >       </server>
> >   </servers>
> >
> >
> > All I get when I run mvn deploy is
> >
> > Uploading: scpexe://localhost:9006/home/cm/maven/dev/......etcetc
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Error deploying artifact: Error executing command for transfer
> >
> > Exit code 255 - Permission denied (publickey,keyboard-interactive).
> >
> >
> > I should note that when I run SCP directly, I am prompted for a
> password.
> > When I run mvn deploy, I receive no prompt, just the error message.
> > Is there way to prevent mvn from trying to use a key file? I'm so stuck,
> > I've tried everything. Please help!
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>