mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
minor doc update
This commit is contained in:
@@ -95,13 +95,15 @@ import java.util.List;
|
||||
* client = new SSHClient();
|
||||
* client.initUserKnownHosts();
|
||||
* client.connect("hostname");
|
||||
* try
|
||||
* {
|
||||
* try {
|
||||
* client.authPassword("username", "password");
|
||||
* client.startSession().exec("true");
|
||||
* client.getConnection().join();
|
||||
* } finally
|
||||
* {
|
||||
* final Session session = client.startSession();
|
||||
* try {
|
||||
* session.exec("true");
|
||||
* client.getConnection().join();
|
||||
* } finally {
|
||||
* session.close();
|
||||
* } finally {
|
||||
* client.disconnect();
|
||||
* }
|
||||
* </pre>
|
||||
@@ -119,7 +121,6 @@ public class SSHClient
|
||||
/** Logger */
|
||||
protected final Logger log = LoggerFactory.getLogger(getClass());
|
||||
|
||||
|
||||
/** Transport layer */
|
||||
protected final Transport trans;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user