You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kallin Nagelberg <ka...@gmail.com> on 2008/03/16 20:37:59 UTC

deployment through tunnel

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!

Re: deployment through tunnel

Posted by Kallin Nagelberg <ka...@gmail.com>.
Cool Thanks, I'll try that.
I don't know how to use ssh-add yet, but I'm sure i can find something
online.

On Mon, Mar 17, 2008 at 7:33 AM, Jan Torben Heuer <
jtnews@mail2003.dnsalias.org> wrote:

>
> > 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).
>
> You need a publickey without password (or you have to unlock it before
> with
> ssh-add)
>
> PW prompt is unsupported
>
> Jan
>
>
> ---------------------------------------------------------------------
> 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 Jan Torben Heuer <jt...@mail2003.dnsalias.org>.
> 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).

You need a publickey without password (or you have to unlock it before with
ssh-add)

PW prompt is unsupported

Jan


---------------------------------------------------------------------
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>.
Sorry just a typo there, it's 9000 everywhere.

On Sun, Mar 16, 2008 at 4:24 PM, Wayne Fay <wa...@gmail.com> wrote:

> Just looking at it, and not knowing anything about it at all, I notice
> you have port 9000 most places, but then Maven errors out with port
> 9006. So that might be your problem (?).
>
> Wayne
>
> On 3/16/08, Kallin Nagelberg <ka...@gmail.com> wrote:
> > 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 Wayne Fay <wa...@gmail.com>.
Just looking at it, and not knowing anything about it at all, I notice
you have port 9000 most places, but then Maven errors out with port
9006. So that might be your problem (?).

Wayne

On 3/16/08, Kallin Nagelberg <ka...@gmail.com> wrote:
> 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
>
>

答复: deployment through tunnel

Posted by 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


Re: deployment through tunnel

Posted by Kallin Nagelberg <ka...@gmail.com>.
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!
>