I got the following error in scp task when run ant.
my build file:
<scp todir="${username}:${password}@${ip}:${dir}" >
<fileset
dir="${parentDir}/">
<include
name="**/${dirToCopy}"/>
</fileset>
</scp>
|
ERROR:
com.jcraft.jsch.JSchException: reject HostKey: 10.xx.xx.xx |
FIX:
Add trust attribute.
<scp todir="${username}:${password}@${ip}:${dir}"
trust="true" >
<fileset
dir="${parentDir}/">
<include
name="**/${dirToCopy}"/>
</fileset>
</scp>
|
No comments:
Post a Comment