commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: [VFS] Known hosts checking for SFTP Ant tasks?
Date Fri, 07 Jul 2006 12:58:54 GMT
Hi !
> So the questions remains! In the "black box" Ant task implementation,
> where is the code looking for the known_hosts file (running on Windows
> XP)??
The code is in VFSs SftpClientFactory class.
It will look for a ssh-dir by:
*) taking the system property vfs.sftp.sshdir
*) searching in ${user.home}/.ssh
*) searching in c:/cygwin/home/${}/.ssh
*) use the current directory

The first existing directory will be used. Its assumed to find a
known_hosts file in this directory.

You can use the SftpFileSystemConfigBuilder to setup another directory
or to disable the host key checking (StrictHostKeyChecking), tough, this
cant be configured through the ant task.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message