minor doc update

This commit is contained in:
Shikhar Bhushan
2010-08-12 17:19:28 +01:00
parent 168272ad3b
commit 8a4367cc7a

View File

@@ -95,13 +95,15 @@ import java.util.List;
* client = new SSHClient(); * client = new SSHClient();
* client.initUserKnownHosts(); * client.initUserKnownHosts();
* client.connect("hostname"); * client.connect("hostname");
* try * try {
* {
* client.authPassword("username", "password"); * client.authPassword("username", "password");
* client.startSession().exec("true"); * final Session session = client.startSession();
* try {
* session.exec("true");
* client.getConnection().join(); * client.getConnection().join();
* } finally * } finally {
* { * session.close();
* } finally {
* client.disconnect(); * client.disconnect();
* } * }
* </pre> * </pre>
@@ -119,7 +121,6 @@ public class SSHClient
/** Logger */ /** Logger */
protected final Logger log = LoggerFactory.getLogger(getClass()); protected final Logger log = LoggerFactory.getLogger(getClass());
/** Transport layer */ /** Transport layer */
protected final Transport trans; protected final Transport trans;