Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x
You have a different solution? A short tip here would help you and many other users who saw this issue last week.
- com.jcraft.jsch.JSchException: java.lang.SecurityException: not allowed to make a socket connection to 10:10:10:1,22 Agent Manager: Agent error: at com.jcraft.jsch.Util.createSocket(Util.java:349) at com.jcraft.jsch.Session.connect(Session.java:215) at com.jcraft.jsch.Session.connect(Session.java:183) at ImportFileData.NotesMain(Unknown Source) at lotus.domino.AgentBase.runNotes(Unknown Source) at lotus.domino.NotesThread.run(Unknown Source)