I think I figured out the solution. If you don't provide the password in the connection url after the username vfs-sftp will check for the public key authentication.
Rajika On Thu, Mar 18, 2010 at 3:10 PM, Rajika Kumarasiri <[email protected]> wrote: > hi, > Does the commons-vfs sftp has the support for specifying public key without > specifying the password for authentication? > I came across the class [1] and also found that the underline ssh support > of common-vfs is powered by Jsch lib[2] which has the support for specifying > the public key for authentication. > Is there is any sample or any document where I can look at ? > > Thanks in advance, > Rajika > > [1] - > https://svn.wso2.org/repos/wso2/branches/carbon/3.0.0/dependencies/commons-vfs/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpFileSystemConfigBuilder.java > [2] -.http://www.jcraft.com/jsch/ > > -- > http://rajikak.blogspot.com/ > -- http://rajikak.blogspot.com/
