commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
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/${user.name}/.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.

Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message