Package com.tailf.ned
Class SSHConnection
Object
ch.ethz.ssh2.Connection
com.tailf.ned.SSHConnection
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 -
Constructor Summary
ConstructorsConstructorDescriptionSSHConnection(NedWorker worker) 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 TypeMethodDescriptionbooleanauthenticateWithAgent(String user, ch.ethz.ssh2.auth.AgentProxy proxy) Deprecated.Overridden authentication methodbooleanauthenticateWithKeyboardInteractive(String user, String[] submethods, ch.ethz.ssh2.InteractiveCallback cb) Deprecated.Overridden authentication methodbooleanauthenticateWithNone(String user) Deprecated.Overridden authentication methodbooleanauthenticateWithPassword(String user, String password) Deprecated.Overridden authentication methodbooleanauthenticateWithPublicKey(String user, char[] pemPrivateKey, String password) Deprecated.Overridden authentication methodbooleanauthenticateWithPublicKey(String user, File pemFile, String password) Deprecated.Overridden authentication methodch.ethz.ssh2.ConnectionInfoconnect()Deprecated.Overridden connect method see ch.ethz.ssh2.Connection.connect() Same asconnect(null, 0, 0).ch.ethz.ssh2.ConnectionInfoconnect(ch.ethz.ssh2.ServerHostKeyVerifier verifier) Deprecated.Overridden connect method see ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier verifier) Same asconnect(verifier, 0, 0).ch.ethz.ssh2.ConnectionInfoconnect(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)String[]Deprecated.Overridden authentication methodMethods 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
-
Field Details
-
LOGGER
Deprecated.
-
-
Constructor Details
-
SSHConnection
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
Deprecated.Overridden connect method see ch.ethz.ssh2.Connection.connect() Same asconnect(null, 0, 0).- Overrides:
connectin classch.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:
connectin classch.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 asconnect(verifier, 0, 0).- Overrides:
connectin classch.ethz.ssh2.Connection- Throws:
IOException
-
authenticateWithPassword
Deprecated.Overridden authentication method- Overrides:
authenticateWithPasswordin classch.ethz.ssh2.Connection- Throws:
IOException
-
authenticateWithNone
Deprecated.Overridden authentication method- Overrides:
authenticateWithNonein classch.ethz.ssh2.Connection- Throws:
IOException
-
authenticateWithPublicKey
public boolean authenticateWithPublicKey(String user, char[] pemPrivateKey, String password) throws IOException Deprecated.Overridden authentication method- Overrides:
authenticateWithPublicKeyin classch.ethz.ssh2.Connection- Throws:
IOException
-
authenticateWithPublicKey
public boolean authenticateWithPublicKey(String user, File pemFile, String password) throws IOException Deprecated.Overridden authentication method- Overrides:
authenticateWithPublicKeyin classch.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:
authenticateWithKeyboardInteractivein classch.ethz.ssh2.Connection- Throws:
IOException
-
authenticateWithAgent
public boolean authenticateWithAgent(String user, ch.ethz.ssh2.auth.AgentProxy proxy) throws IOException Deprecated.Overridden authentication method- Overrides:
authenticateWithAgentin classch.ethz.ssh2.Connection- Throws:
IOException
-
getRemainingAuthMethods
Deprecated.Overridden authentication method- Overrides:
getRemainingAuthMethodsin classch.ethz.ssh2.Connection- Throws:
IOException
-