[ 
https://issues.apache.org/jira/browse/VFS-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553391#comment-13553391
 ] 

Gary Gregory commented on VFS-451:
----------------------------------

I tweaked the patch and applied it. Thank you.

{noformat}
commit -m "[VFS-451] Authentication fails using private key." 
C:/svn/org/apache/commons/trunks-proper/vfs/src/changes/changes.xml 
C:/svn/org/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpClientFactory.java
    Sending        
C:/svn/org/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpClientFactory.java
    Sending        
C:/svn/org/apache/commons/trunks-proper/vfs/src/changes/changes.xml
    Transmitting file data ...
    Committed revision 1433253.
{noformat}

Please get the latest from trunk, verify that the fix works for you, and post 
back here.

Thank you!
Gary
                
> Authentication fails using private key
> --------------------------------------
>
>                 Key: VFS-451
>                 URL: https://issues.apache.org/jira/browse/VFS-451
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: windows as client
> linux as ssh server
>            Reporter: Marco Ronchi
>            Assignee: Gary Gregory
>         Attachments: SftpClientFactory.java.patch, SimpleTest.java, 
> vfs-patch-2.txt
>
>
> Cannot connect to a ssh server with my private key.
> I believe the issue is due to an JSCH bug.
> Using the following lines: 
>      session.setPassword(pass);
>      jsch.addIdentity(identityfile);
> instead of
>      jsch.addIdentity(privateKeyFilePath,password);
> authentication fails.
>       
>       

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to