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
-
Constructor Summary
ConstructorDescriptionSSHConnection
(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 TypeMethodDescriptionboolean
authenticateWithAgent
(String user, ch.ethz.ssh2.auth.AgentProxy proxy) Deprecated.Overridden authentication methodboolean
authenticateWithKeyboardInteractive
(String user, String[] submethods, ch.ethz.ssh2.InteractiveCallback cb) Deprecated.Overridden authentication methodboolean
authenticateWithNone
(String user) Deprecated.Overridden authentication methodboolean
authenticateWithPassword
(String user, String password) Deprecated.Overridden authentication methodboolean
authenticateWithPublicKey
(String user, char[] pemPrivateKey, String password) Deprecated.Overridden authentication methodboolean
authenticateWithPublicKey
(String user, File pemFile, String password) Deprecated.Overridden authentication methodch.ethz.ssh2.ConnectionInfo
connect()
Deprecated.Overridden connect method see ch.ethz.ssh2.Connection.connect() Same asconnect(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 asconnect(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)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
public static org.apache.logging.log4j.Logger LOGGERDeprecated.
-
-
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:
connect
in 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:
connect
in 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:
connect
in classch.ethz.ssh2.Connection
- Throws:
IOException
-
authenticateWithPassword
Deprecated.Overridden authentication method- Overrides:
authenticateWithPassword
in classch.ethz.ssh2.Connection
- Throws:
IOException
-
authenticateWithNone
Deprecated.Overridden authentication method- Overrides:
authenticateWithNone
in classch.ethz.ssh2.Connection
- Throws:
IOException
-
authenticateWithPublicKey
public boolean authenticateWithPublicKey(String user, char[] pemPrivateKey, String password) throws IOException Deprecated.Overridden authentication method- Overrides:
authenticateWithPublicKey
in classch.ethz.ssh2.Connection
- Throws:
IOException
-
authenticateWithPublicKey
public boolean authenticateWithPublicKey(String user, File pemFile, String password) throws IOException Deprecated.Overridden authentication method- Overrides:
authenticateWithPublicKey
in 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:
authenticateWithKeyboardInteractive
in 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:
authenticateWithAgent
in classch.ethz.ssh2.Connection
- Throws:
IOException
-
getRemainingAuthMethods
Deprecated.Overridden authentication method- Overrides:
getRemainingAuthMethods
in classch.ethz.ssh2.Connection
- Throws:
IOException
-