Saturday, January 24, 2015

Ant SCP Error com.jcraft.jsch.JSchException: reject HostKey

This happens when the target server is not a "known host". Just do a normal SSH to the server and say yes to adding the server to known hosts, and after that SCP from Ant should be fine.

http://anahorny.blogspot.sg/2013/05/solution-for-comjcraftjschjschexception.html

No comments:

Post a Comment