You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mevlut Evren Tekin (Updated) (JIRA)" <ji...@apache.org> on 2011/11/24 17:03:39 UTC

[jira] [Updated] (VFS-283) SFTP can not use private keys protected by pass phrase

     [ https://issues.apache.org/jira/browse/VFS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mevlut Evren Tekin updated VFS-283:
-----------------------------------

    Attachment: vfs-283.patch

The datatype for identities has been changed from File[] to LinkedHashMap<File,String> to allow storing and retrieving privateKeyFile-passphrase pairings. Method names and interfaces were left unchanged to allow backward compatibility for existing applications using getIdentities and setIdentities methods in SftpSystemConfigBuilder class. Two new methods (setIdentityPairs and getIdentityPairs) have been added to the new class to allow passphrase support for publickey authentication. identities variable in createConnection method in SftpClientFactory class is now defined as Map<File,String> datatype instead of File[] for passphrase support.
                
> SFTP can not use private keys protected by pass phrase
> ------------------------------------------------------
>
>                 Key: VFS-283
>                 URL: https://issues.apache.org/jira/browse/VFS-283
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: Java client running on Windows XP. OpenSSH server running on CentOS Linux.
>            Reporter: Torben Putkonen
>         Attachments: vfs-283.patch
>
>
> It is not possible to authenticate an SFTP connection with public key authentication if the private key is protected by a pass phrase.
> There is no code in org.apache.commons.vfs.provider.sftp.SftpClientFactory that deals with pas phrases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira