I'm using com.jcraft.jsch.JSch
to create an SFTP connection.
Is there a way to bypass/skip the authenticity warning that pops up when the connection's authenticity can't be established?
Here's more detail:
My code looks a little like this:
Session session = jsch.getSession(user, host, port);
UserInfo ui = new MyUserInfo();
session.setUserInfo(ui);
session.connect();
When the session.connect();
line is called, I get a popup that reads:
The authenticity of host <MY HOST> can't be established.
...
Are you sure you want to continue connecting?
[No] [Yes]
Is there a way to programmatically bypass/skip this popup and accept the connection?