jssh
Class SSHClient

java.lang.Object
  |
  +--jssh.SSHClient

public class SSHClient
extends java.lang.Object

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

SSHClient

public SSHClient(Options options_)
Constructor

Method Detail

connect

public void connect()
             throws java.lang.Exception
This method connects to the server and starts up the protocol handler.

java.lang.Exception

main

public static void main(java.lang.String[] argv)
Main method of the example program.