SshClient extends AbstractEndpoint implements Producer, ReplyConsumer { @Override public SshEndpointConfiguration getEndpointConfiguration() { return (SshEndpointConfiguration) super.getEndpointConfiguration(); } SshClient(); protected  SshClient(SshEndpointConfiguration endpointConfiguration); @Override SshEndpointConfiguration getEndpointConfiguration(); void send(Message message, TestContext context); @Override Message receive(TestContext context); @Override Message receive(String selector, TestContext context); @Override Message receive(TestContext context, long timeout); @Override Message receive(String selector, TestContext context, long timeout); @Override Producer createProducer(); @Override SelectiveConsumer createConsumer(); JSch getJsch(); void setJsch(JSch jsch); void setCorrelationManager(CorrelationManager<Message> correlationManager);  }
@Test public void withPrivateKey() throws JSchException, IOException { strictHostChecking(false,null); client.getEndpointConfiguration().setPrivateKeyPath("classpath:com/consol/citrus/ssh/private.key"); jsch.addIdentity(isA(String.class), (String) isNull()); strictHostChecking(false, null); standardChannelPrepAndSend(); }
@Test public void withPassword() throws JSchException, IOException { client.getEndpointConfiguration().setPassword("consol"); session.setUserInfo(getUserInfo("consol")); session.setPassword("consol"); strictHostChecking(false, null); standardChannelPrepAndSend(); }