@Test public void disableHostChecking() throws Exception { contextWithEmptyUserDir(); sshd.start(); try { SshSession session = new JschConnect(context) .host(sshd.getHost()) .port(sshd.getPort()) .username("doesnotexist") .disableHostChecking() .run(); } catch (IllegalStateException e) { assertThat(e.getMessage(), containsString("password:")); } }
abstract public SshConnect disableHostChecking();
SshConnect extends Action<SshConnect.Result,SshSession> implements UriMixin<SshConnect> { abstract public SshConnect disableHostChecking(); }
SshConnect extends Action<SshConnect.Result,SshSession> implements UriMixin<SshConnect> { abstract public SshConnect disableHostChecking(); SshConnect(Context context); }
SshConnect extends Action<SshConnect.Result,SshSession> implements UriMixin<SshConnect> { abstract public SshConnect disableHostChecking(); SshConnect(Context context); abstract SshConnect newConnect(MutableUri uri); abstract SshConnect configFile(Path configFile); abstract SshConnect identityFile(Path identityFile); abstract SshConnect keepAliveInterval(long keepAliveInterval); abstract SshConnect knownHostsFile(Path knownHostsFile); abstract SshConnect hostChecking(boolean hostChecking); abstract SshConnect disableHostChecking(); SshConnect proxy(SshSession session); abstract SshConnect proxy(SshSession session, boolean autoclose); }
SshConnect extends Action<SshConnect.Result,SshSession> implements UriMixin<SshConnect> { abstract public SshConnect disableHostChecking(); SshConnect(Context context); abstract SshConnect newConnect(MutableUri uri); abstract SshConnect configFile(Path configFile); abstract SshConnect identityFile(Path identityFile); abstract SshConnect keepAliveInterval(long keepAliveInterval); abstract SshConnect knownHostsFile(Path knownHostsFile); abstract SshConnect hostChecking(boolean hostChecking); abstract SshConnect disableHostChecking(); SshConnect proxy(SshSession session); abstract SshConnect proxy(SshSession session, boolean autoclose);  }