mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 00:00:54 +03:00
better example
This commit is contained in:
@@ -99,8 +99,8 @@ import java.util.List;
|
||||
* client.authPassword("username", "password");
|
||||
* final Session session = client.startSession();
|
||||
* try {
|
||||
* session.exec("true");
|
||||
* client.getConnection().join();
|
||||
* final Command cmd = session.exec("true");
|
||||
* cmd.join(1, TimeUnit.SECONDS);
|
||||
* } finally {
|
||||
* session.close();
|
||||
* } finally {
|
||||
|
||||
Reference in New Issue
Block a user