Package com.tailf.ned

Class SSHConnection

Object
ch.ethz.ssh2.Connection
com.tailf.ned.SSHConnection

@Deprecated public class SSHConnection extends ch.ethz.ssh2.Connection
Deprecated.
Overridden SSH Connection class, that is used to handle Ncs Configuration parameters. For instance /ncs-config/southbound-source-address This class should be used instead of the ganymed ch.ethz.ssh2.Connection class
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.logging.log4j.Logger
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructor that uses the current NedWorker to retrieve configuration parameters like host, port and also southbound-source-address (if set)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authenticateWithAgent(String user, ch.ethz.ssh2.auth.AgentProxy proxy)
    Deprecated.
    Overridden authentication method
    boolean
    authenticateWithKeyboardInteractive(String user, String[] submethods, ch.ethz.ssh2.InteractiveCallback cb)
    Deprecated.
    Overridden authentication method
    boolean
    Deprecated.
    Overridden authentication method
    boolean
    Deprecated.
    Overridden authentication method
    boolean
    authenticateWithPublicKey(String user, char[] pemPrivateKey, String password)
    Deprecated.
    Overridden authentication method
    boolean
    authenticateWithPublicKey(String user, File pemFile, String password)
    Deprecated.
    Overridden authentication method
    ch.ethz.ssh2.ConnectionInfo
    Deprecated.
    Overridden connect method see ch.ethz.ssh2.Connection.connect() Same as connect(null, 0, 0).
    ch.ethz.ssh2.ConnectionInfo
    connect(ch.ethz.ssh2.ServerHostKeyVerifier verifier)
    Deprecated.
    Overridden connect method see ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier verifier) Same as connect(verifier, 0, 0).
    ch.ethz.ssh2.ConnectionInfo
    connect(ch.ethz.ssh2.ServerHostKeyVerifier arg0, int arg1, int arg2)
    Deprecated.
    Overridden connect method see ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier arg0, int arg1, int arg2)
    Deprecated.
    Overridden authentication method

    Methods inherited from class ch.ethz.ssh2.Connection

    addConnectionMonitor, authenticateWithDSA, authenticateWithKeyboardInteractive, bindSourceAddress, cancelRemotePortForwarding, close, close, createLocalPortForwarder, createLocalPortForwarder, createLocalStreamForwarder, createSCPClient, forceKeyExchange, getAvailableCiphers, getAvailableMACs, getAvailableServerHostKeyAlgorithms, getConnectionInfo, getHostname, getPort, isAuthenticationComplete, isAuthenticationPartialSuccess, isAuthMethodAvailable, openSession, removeConnectionMonitor, requestRemotePortForwarding, sendIgnorePacket, sendIgnorePacket, setClient2ServerCiphers, setClient2ServerMACs, setDHGexParameters, setSecureRandom, setServer2ClientCiphers, setServer2ClientMACs, setServerHostKeyAlgorithms, setTCPNoDelay, setTrafficClass

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      public static org.apache.logging.log4j.Logger LOGGER
      Deprecated.
  • Constructor Details

    • SSHConnection

      public SSHConnection(NedWorker worker)
      Deprecated.
      Constructor that uses the current NedWorker to retrieve configuration parameters like host, port and also southbound-source-address (if set)
      Parameters:
      worker - current NedWorker
  • Method Details

    • connect

      public ch.ethz.ssh2.ConnectionInfo connect() throws IOException
      Deprecated.
      Overridden connect method see ch.ethz.ssh2.Connection.connect() Same as connect(null, 0, 0).
      Overrides:
      connect in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • connect

      public ch.ethz.ssh2.ConnectionInfo connect(ch.ethz.ssh2.ServerHostKeyVerifier arg0, int arg1, int arg2) throws IOException
      Deprecated.
      Overridden connect method see ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier arg0, int arg1, int arg2)
      Overrides:
      connect in class ch.ethz.ssh2.Connection
      Parameters:
      arg0 - ServerHostKeyVerifier is ignored - host key verification will be carried out in accordance with the configuration for this device in NCS.
      arg1 - idleTimeout in milliseconds, Zero means no timeout.
      arg2 - connectTimeout in milliseconds, Zero means no timeout This method also handles authentication via the password/public key set for the remote user. A caller can continue to use this Connection as long as long as isAuthenticationComplete() returns true after connect() has been called.
      Throws:
      IOException
    • connect

      public ch.ethz.ssh2.ConnectionInfo connect(ch.ethz.ssh2.ServerHostKeyVerifier verifier) throws IOException
      Deprecated.
      Overridden connect method see ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier verifier) Same as connect(verifier, 0, 0).
      Overrides:
      connect in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithPassword

      public boolean authenticateWithPassword(String user, String password) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithPassword in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithNone

      public boolean authenticateWithNone(String user) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithNone in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithPublicKey

      public boolean authenticateWithPublicKey(String user, char[] pemPrivateKey, String password) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithPublicKey in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithPublicKey

      public boolean authenticateWithPublicKey(String user, File pemFile, String password) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithPublicKey in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithKeyboardInteractive

      public boolean authenticateWithKeyboardInteractive(String user, String[] submethods, ch.ethz.ssh2.InteractiveCallback cb) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithKeyboardInteractive in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • authenticateWithAgent

      public boolean authenticateWithAgent(String user, ch.ethz.ssh2.auth.AgentProxy proxy) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      authenticateWithAgent in class ch.ethz.ssh2.Connection
      Throws:
      IOException
    • getRemainingAuthMethods

      public String[] getRemainingAuthMethods(String user) throws IOException
      Deprecated.
      Overridden authentication method
      Overrides:
      getRemainingAuthMethods in class ch.ethz.ssh2.Connection
      Throws:
      IOException