I am getting a known hosts exception when using SFTP with VFS. This is
obvious error, as Synapse has no idea of the SFTP hosts it can trust. So
jsch library can't find the known_hosts file as Synapse has not told it
where it is. Spent a few hours looking for somewhere to set this but can't
find it.

Open SSH stores these in a know location, but Synapse-VFS doesn't know this;
as its not configured ?
Other applicatons that use Jsch library have a documented setting for this.
For Jsch this file could be anywhere as it is up to calling application to
configure it, with a call to setKnownHosts.

Does Synapse VFS Mediator use a known location for "known_hosts" file ?
- where do I put the Key ?
- is there a setting for this in a config file ?
- is this documented ?

If above is not implemented then can I tell VFS to just trust this host; is
this an VFS option in Synapse Mediator ?
- if Yes what is the syntax and should it be documented ?
- if not why is this not an option ?

So this is same as doing call:
SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(ops,
"no");

HOWEVER, this may not be a secure option; and Synapse should rely on a
known_hosts file.

Unless one of the above is implemented or settable, then VFS SFTP is pretty
useless.

Thanks
Kim


Exception info ( note, I put in the XXX and LOCATION for security):

FTP server at "sftp://XXX:[email protected]/";.
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server
at "sftp://XXX:[email protected]/";.
        at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
        at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
        at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:602)
        at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:570)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:164)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:138)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:105)
        at
org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:97)
        at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to
SFTP server at "c-connect.LOCATION.com".
        at
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:214)
        at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
        ... 13 more
Caused by: com.jcraft.jsch.JSchException: UnknownHostKey:
c-connect.LOCATION.com. DSA key fingerprint is
00:96:17:70:sw:ce:f9:b1:2a:b7:5aq:36:0a:we:b1:ed





-- 
View this message in context: 
http://www.nabble.com/VFS-Known-Hosts-Exception-SFTP-unusable-tp22900817p22900817.html
Sent from the Synapse - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to