Take a look at the API specifications, most notably the SshConnector class as thid=014">Getting Started tutorial useful.