mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
minor doc update
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user