@Test public void passwordAuthViaProperty() throws Exception { contextWithEmptyUserDir(); sshd.start(); SshSession session = new JschConnect(context) .host(sshd.getHost()) .port(sshd.getPort()) .username("blaze") .password("test") .disableHostChecking() .run(); assertThat(session, is(not(nullValue()))); assertThat(session.uri().getHost(), is("localhost")); assertThat(session.uri().getUsername(), is("blaze")); assertThat(prompter.answers(), hasSize(0)); }
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);  }