RE: How to do sftp without getting passwd or connection prompt?

2009-01-27 Thread Tang, Ray
Hello:

I have now changed to use "scpexe", but still unable to do the
deployment.  The problem is that I followed instructions to generate ssh
keys from this website:  http://cs.smith.edu/FAQ/ssh2.html and I am able
to do "ssh remote host (chiadvsdap73) from localhost and backward
without any issues.  I am really puzzled what maven is trying to do here
and there aren't any debugging that I can parse onto build.  

Can someone please shed some light on this simple-but-frustrating issue?

Many Thanks.

Ray



Enclosed is the setting file.

My deploy code looks like this:

  
  

 
 
 

 
  



The build log:
[artifact:install-provider] Installing provider:
org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime
[artifact:deploy] Deploying to
scpexe://chiadvsdap73/datlib/advantage/sig/repository/snapshot
[artifact:deploy] Uploading: magma/magma/5.1.0.028/magma-5.1.0.028.jar
to scpexe://chiadvsdap73/datlib/advantage/sig/repository/snapshot
[artifact:deploy] An error has occurred while processing the Maven
artifact tasks.
[artifact:deploy]  Diagnosis:
[artifact:deploy] 
[artifact:deploy] Error deploying artifact 'magma:magma:jar': Error
deploying artifact: Error executing command for transfer
[artifact:deploy] Exit code 78 -
*
[artifact:deploy] ** **
[artifact:deploy] **  This is a private computer system with access  **
[artifact:deploy] **  restricted to those with proper authorization. **
[artifact:deploy] **  If you are not specifically authorized to  **
[artifact:deploy] **  access data on this system, disconnect now.**
[artifact:deploy] **  All information and communications on this **
[artifact:deploy] **  system are subject to review, monitoring, and  **
[artifact:deploy] **  recording at any time without notice or**
[artifact:deploy] **  permission.  Unauthorized use or access may be **
[artifact:deploy] **  subject to prosecution or disciplinary action. **
[artifact:deploy] ** **
[artifact:deploy] *
[artifact:deploy] 
[artifact:deploy] warning:
/Net/prduser/users/nbs5u2j/.ssh2/id_dsa_2048_a: 4: parsing line failed.
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] Keyboard-interactive:
[artifact:deploy] PAM authentication
[artifact:deploy] warning: Authentication failed.
[artifact:deploy] Disconnected (local); no more authentication methods
available (No further authentication methods available.).
[artifact:deploy] Disconnect reason 14, exit code = 78
[artifact:deploy] 



-Original Message-
From: Johan Lindquist [mailto:jo...@kawoo.co.uk] 
Sent: Friday, January 23, 2009 3:50 PM
To: Maven Users List
Subject: Re: How to do sftp without getting passwd or connection prompt?

Hi Ray,

I may be well off, but this usually works for me - the only thing
different is that I use the scpexe protocol.

Cheers,

Johan

Tang, Ray wrote:
> Can someone please advise how this can get done without entering 
> password or yes?
>  
> I am enclosing the settings.xml for reference.
>  
> Thanks.
>  
> Ray
>  
> Here is the output of the logs.
>  
> deploy:
>  [echo] Deploying foundation to remote 
>
sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/
snapshot...
> Warning: Reference repo.local.id has not been set at runtime, but was 
> found during build file parsing, attempting to resolve. Future 
> versions of Ant may support  referencing ids defined in non-executed 
> targets.
> [artifact:deploy] Deploying to
> sftp://chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] [INFO] Retrieving previous build number from 
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repositor
> y/snapshot [artifact:deploy] The authenticity of host 'chiadvsdap62' 
> can't be established.
> [artifact:deploy] DSA key fingerprint is 
> 6e:18:0c:a0:07:70:94:18:1e

Re: How to do sftp without getting passwd or connection prompt?

2009-01-23 Thread Deron Eriksson

If you're running on windows, you can use Pageant to automatically take care
of your SSH login so that you're not prompted for username/password each
time. I've used Pageant in conjunction with scpexe to deploy.

A nice tutorial describing SSH setup can be found at:
http://www.howtoforge.com/ssh_key_based_logins_putty


Deron Eriksson

-- 
View this message in context: 
http://www.nabble.com/How-to-do-sftp-without-getting-passwd-or-connection-prompt--tp21632915p21637964.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to do sftp without getting passwd or connection prompt?

2009-01-23 Thread Dan Tran
you need to add your public key to your remote shell, please read up
on configuring ssh shell to details.

there should be plenty example on search

-D

On Fri, Jan 23, 2009 at 1:23 PM, Tang, Ray  wrote:
> Can someone please advise how this can get done without entering password or
> yes?
>
> I am enclosing the settings.xml for reference.
>
> Thanks.
>
> Ray
>
> Here is the output of the logs.
>
> deploy:
>  [echo] Deploying foundation to remote
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/snapshot...
> Warning: Reference repo.local.id has not been set at runtime, but was found
> during
> build file parsing, attempting to resolve. Future versions of Ant may
> support
>  referencing ids defined in non-executed targets.
> [artifact:deploy] Deploying to
> sftp://chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] [INFO] Retrieving previous build number from
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] The authenticity of host 'chiadvsdap62' can't be
> established.
> [artifact:deploy] DSA key fingerprint is
> 6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
> [artifact:deploy] Are you sure you want to continue connecting? (yes/no):
> yes
> [artifact:deploy] *
> [artifact:deploy] ** **
> [artifact:deploy] ** This is a private computer system with access   **
> [artifact:deploy] ** restricted to those with proper authorization.  **
> [artifact:deploy] ** If you are not specifically authorized to   **
> [artifact:deploy] ** access data on this system, disconnect now. All **
> [artifact:deploy] ** information and communications on this system   **
> [artifact:deploy] ** are subject to review, monitoring, and  **
> [artifact:deploy] ** recording at any time without notice or **
> [artifact:deploy] ** permission. Unauthorized use or access may be   **
> [artifact:deploy] ** subject to prosecution or disciplinary action.  **
> [artifact:deploy] ** **
> [artifact:deploy] *
> [artifact:deploy]
> [artifact:deploy] :
> [artifact:deploy] Password: :
> 2xadv103607
> [artifact:deploy] Password: :
> 2xadv103607
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



Re: How to do sftp without getting passwd or connection prompt?

2009-01-23 Thread Johan Lindquist
Hi Ray,

I may be well off, but this usually works for me - the only thing
different is that I use the scpexe protocol.

Cheers,

Johan

Tang, Ray wrote:
> Can someone please advise how this can get done without entering
> password or yes?
>  
> I am enclosing the settings.xml for reference.
>  
> Thanks.
>  
> Ray
>  
> Here is the output of the logs.
>  
> deploy:
>  [echo] Deploying foundation to remote
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/snapshot...
> Warning: Reference repo.local.id has not been set at runtime, but was
> found during
> build file parsing, attempting to resolve. Future versions of Ant may
> support
>  referencing ids defined in non-executed targets.
> [artifact:deploy] Deploying to
> sftp://chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] [INFO] Retrieving previous build number from
> sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository/snapshot
> [artifact:deploy] The authenticity of host 'chiadvsdap62' can't be
> established.
> [artifact:deploy] DSA key fingerprint is
> 6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
> [artifact:deploy] Are you sure you want to continue connecting? (yes/no):
> yes
> [artifact:deploy] *
> [artifact:deploy] ** **
> [artifact:deploy] ** This is a private computer system with access   **
> [artifact:deploy] ** restricted to those with proper authorization.  **
> [artifact:deploy] ** If you are not specifically authorized to   **
> [artifact:deploy] ** access data on this system, disconnect now. All **
> [artifact:deploy] ** information and communications on this system   **
> [artifact:deploy] ** are subject to review, monitoring, and  **
> [artifact:deploy] ** recording at any time without notice or **
> [artifact:deploy] ** permission. Unauthorized use or access may be   **
> [artifact:deploy] ** subject to prosecution or disciplinary action.  **
> [artifact:deploy] ** **
> [artifact:deploy] *
> [artifact:deploy]
> [artifact:deploy] :
> [artifact:deploy] Password: :
> 2xadv103607
> [artifact:deploy] Password: :
> 2xadv103607
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

-- 
you too?

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