You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-dev@maven.apache.org by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org> on 2005/09/20 23:44:11 UTC

[jira] Created: (WAGONSSH-13) authentication with passwords can fail in some environments

authentication with passwords can fail in some environments
-----------------------------------------------------------

         Key: WAGONSSH-13
         URL: http://jira.codehaus.org/browse/WAGONSSH-13
     Project: wagon-ssh
        Type: Bug
 Reporter: Juan F. Codagnone
    Priority: Minor


if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.

Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGONSSH-13?page=all ]

Juan F. Codagnone updated WAGONSSH-13:
--------------------------------------

    Attachment: WAGONSSH-13-b.diff

attached a configurable  solution 

Some warnings:
   * i still dont know much about plexus
   * It handles a bit better the input than WAGONSSH-12 because i didn't know about the existense of pluxus-prompter when i wrote that patch.


> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff, WAGONSSH-13-b.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGONSSH-13?page=all ]
     
Brett Porter closed WAGONSSH-13:
--------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

applied, thanks!

the keyboard interactive didn't seem to ever get called for me... so I also added prompting to the userinfo

> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-alpha-5
>  Attachments: WAGON-13.diff, WAGONSSH-13-b.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Jesse McConnell (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_46780 ] 

Jesse McConnell commented on WAGONSSH-13:
-----------------------------------------

http://sourceforge.net/mailarchive/forum.php?thread_id=7308988&forum_id=12628

that url looks like it will address the issue perhaps...since brett indicated jsch was the underlying library

> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor

>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_46858 ] 

Juan F. Codagnone commented on WAGONSSH-13:
-------------------------------------------

ok, i will take a deeper look. perhaps i can reuse the interactive configuration that i add in WAGONSSH-12 .


> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_48268 ] 

Brett Porter commented on WAGONSSH-13:
--------------------------------------

yes, I know. we've had a few issues with jline and pulled it out.


> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-alpha-5
>  Attachments: WAGON-13.diff, WAGONSSH-13-b.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_46829 ] 

Trygve Laugstol commented on WAGONSSH-13:
-----------------------------------------

I'm postponing this one a bit to investigate if we should use our own password prompter mechanism. 

Juan: do you want to take a look at that?

> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGONSSH-13?page=all ]

Juan F. Codagnone updated WAGONSSH-13:
--------------------------------------

    Attachment: WAGON-13.diff

this makes my wagon work in those environments.

it is a pity that there is no such thing as a free ssh java server to be able to have unit tests.



> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_48263 ] 

Juan F. Codagnone commented on WAGONSSH-13:
-------------------------------------------

org.codehaus.plexus.components.interactivity.DefaultInputHandler is being used, and its readPassword() just call       
java.io.BufferedReader#readLine(), echoing the password.




> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-alpha-5
>  Attachments: WAGON-13.diff, WAGONSSH-13-b.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGONSSH-13?page=all ]

Brett Porter updated WAGONSSH-13:
---------------------------------

    Fix Version: 1.0-alpha-5

> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>      Fix For: 1.0-alpha-5
>  Attachments: WAGON-13.diff, WAGONSSH-13-b.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_46875 ] 

Brett Porter commented on WAGONSSH-13:
--------------------------------------

I think this should be applied as long as it is only used as a fallback, right? This seems like a good solution to avoiding hangs at the least.

> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WAGONSSH-13) authentication with passwords can fail in some environments

Posted by "Juan F. Codagnone (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGONSSH-13?page=comments#action_46887 ] 

Juan F. Codagnone commented on WAGONSSH-13:
-------------------------------------------


my interpretation of jsch code  jsch-0.1.21/src/com/jcraft/jsch/Session.java[1]  around line 357 shows the jsch will choose the order depending the servers order.

So the best i think is to provide a safe default, and a way to change it (configure it)  (like i want to configure it in WAGON-12). The nice thing about programing to interafaces and having a IoC container is that you can replace everything. I will work in a real solution if you like. (not this hack)

[1] they dont have a viewcvs or any javadoc



> authentication with passwords can fail in some environments
> -----------------------------------------------------------
>
>          Key: WAGONSSH-13
>          URL: http://jira.codehaus.org/browse/WAGONSSH-13
>      Project: wagon-ssh
>         Type: Bug
>     Reporter: Juan F. Codagnone
>     Priority: Minor
>  Attachments: WAGON-13.diff
>
>
> if the repository use username / password authentication and the server (openssh here) has "PasswordAuthentication no" option set, it fail to auth. I can log in using others ssh clients thow.
> Changing PasswordAuthentication to yes, makes wagon succeed , but it is not a practical solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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