Copy scpexe to windows path?? -----邮件原件----- 发件人: Kallin Nagelberg [mailto:[EMAIL PROTECTED] 发送时间: 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 [EMAIL PROTECTED] So I can ssh and scp manually just fine. On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg < [EMAIL PROTECTED]> 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 [EMAIL PROTECTED]:. > > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
