[
https://issues.apache.org/jira/browse/VFS-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552370#comment-13552370
]
Gary Gregory commented on VFS-451:
----------------------------------
Thank you for the new patch. Unfortunately, it breaks existing unit tests:
{noformat}
Tests in error:
junit.framework.TestSuite@20b00ec2(org.apache.commons.vfs2.provider.sftp.test.SftpProviderTestCase$BaseProviderTestSuite):
Could not connect to SFTP server at "sftp://testtest@localhost:53018/".
junit.framework.TestSuite@fbb8694(org.apache.commons.vfs2.provider.sftp.test.SftpProviderTestCase$5):
Could not connect to SFTP server at "sftp://testtest@localhost:53018/".
{noformat}
Please run "mnv clean test" before submitting a patch to make sure you are not
creating a regression.
Thank you,
Gary
> Auth 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: 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