|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jssh.SSHClient
This is an example of a program that uses the JSSH library to connect to a remote host using the SSH protocol (version 1.5).
This program should be run from the script "test.sh", which disables echoing on the input stream, and also disables processing of control characters on input. This particular example uses the stdin and stdout streams, and starts up two threads (implemented by the nonstatic inner classes ReaderThread and WriterThread) to read and write these streams. Instead of using the stdin and stdout streams, one could start up a terminal-emulator (assuming that the emulator provides an input stream and an output stream) and read and write the terminal-emulator's streams.
Constructor Summary | |
SSHClient(Options options_)
Constructor |
Method Summary | |
void |
connect()
This method connects to the server and starts up the protocol handler. |
static void |
main(java.lang.String[] argv)
Main method of the example program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SSHClient(Options options_)
Method Detail |
public void connect() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |