edu.harvard.mgh.purcell.gCLINE.data
Class OpenSSHConnection

java.lang.Object
  extended by edu.harvard.mgh.purcell.gCLINE.data.OpenSSHConnection

public class OpenSSHConnection
extends java.lang.Object

TAKEN FROM ganymed-ssh2-build210, modified by Kathe Todd-Brown This is a Swing wrapper for an SSH connection. The purpose of this class is to demonstrate: - Verifying server hostkeys with an existing known_hosts file - Displaying fingerprints of server hostkeys - Adding a server hostkey to a known_hosts file (+hashing the hostname for security) - Authentication with DSA, RSA, password and keyboard-interactive methods


Nested Class Summary
(package private)  class OpenSSHConnection.AdvancedVerifier
          This ServerHostKeyVerifier asks the user on how to proceed if a key cannot be found in the in-memory database.
(package private)  class OpenSSHConnection.ConnectionThread
          The SSH-2 connection is established in this thread.
(package private)  class OpenSSHConnection.EnterSomethingDialog
          This dialog displays a number of text lines and a text field.
(package private)  class OpenSSHConnection.InteractiveLogic
          The logic that one has to implement if "keyboard-interactive" autentication shall be supported.
 
Field Summary
(package private)  Record data
           
(package private)  ch.ethz.ssh2.KnownHosts database
           
(package private)  javax.swing.JTextField hostField
           
(package private)  javax.swing.JLabel hostLabel
           
(package private) static java.lang.String idDSAPath
           
(package private) static java.lang.String idRSAPath
           
(package private) static java.lang.String knownHostPath
           
(package private)  javax.swing.JButton loginButton
           
(package private)  javax.swing.JDialog loginFrame
           
(package private)  javax.swing.JTextField portField
           
(package private)  javax.swing.JLabel portLabel
           
(package private)  javax.swing.JTextField userField
           
(package private)  javax.swing.JLabel userLabel
           
 
Constructor Summary
OpenSSHConnection(Record d)
           
OpenSSHConnection(Record d, java.lang.String host, java.lang.String user, int port)
           
 
Method Summary
(package private)  void loginPressed()
           
(package private)  void showGUI()
           
 void startGUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knownHostPath

static final java.lang.String knownHostPath

idDSAPath

static final java.lang.String idDSAPath

idRSAPath

static final java.lang.String idRSAPath

loginFrame

javax.swing.JDialog loginFrame

hostLabel

javax.swing.JLabel hostLabel

userLabel

javax.swing.JLabel userLabel

portLabel

javax.swing.JLabel portLabel

hostField

javax.swing.JTextField hostField

userField

javax.swing.JTextField userField

portField

javax.swing.JTextField portField

loginButton

javax.swing.JButton loginButton

data

Record data

database

ch.ethz.ssh2.KnownHosts database
Constructor Detail

OpenSSHConnection

public OpenSSHConnection(Record d)

OpenSSHConnection

public OpenSSHConnection(Record d,
                         java.lang.String host,
                         java.lang.String user,
                         int port)
Method Detail

loginPressed

void loginPressed()

showGUI

void showGUI()

startGUI

public void startGUI()