@Deprecated public class SSHConnection extends ch.ethz.ssh2.Connection
| Modifier and Type | Field and Description |
|---|---|
static org.apache.logging.log4j.Logger |
LOGGER
Deprecated.
|
| Constructor and Description |
|---|
SSHConnection(NedWorker worker)
Deprecated.
Constructor that uses the current NedWorker to retrieve configuration
parameters like host, port
and also southbound-source-address (if set)
|
| Modifier and Type | Method and 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 |
authenticateWithNone(String user)
Deprecated.
Overridden authentication method
|
boolean |
authenticateWithPassword(String user,
String password)
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 |
connect()
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)
|
String[] |
getRemainingAuthMethods(String user)
Deprecated.
Overridden authentication method
|
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, setTrafficClasspublic SSHConnection(NedWorker worker)
worker - current NedWorkerpublic ch.ethz.ssh2.ConnectionInfo connect()
throws IOException
connect(null, 0, 0).connect in class ch.ethz.ssh2.ConnectionIOExceptionpublic ch.ethz.ssh2.ConnectionInfo connect(ch.ethz.ssh2.ServerHostKeyVerifier arg0,
int arg1,
int arg2)
throws IOException
connect in class ch.ethz.ssh2.Connectionarg0 - 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.IOExceptionpublic ch.ethz.ssh2.ConnectionInfo connect(ch.ethz.ssh2.ServerHostKeyVerifier verifier)
throws IOException
connect(verifier, 0, 0).connect in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithPassword(String user, String password) throws IOException
authenticateWithPassword in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithNone(String user) throws IOException
authenticateWithNone in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithPublicKey(String user, char[] pemPrivateKey, String password) throws IOException
authenticateWithPublicKey in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithPublicKey(String user, File pemFile, String password) throws IOException
authenticateWithPublicKey in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithKeyboardInteractive(String user, String[] submethods, ch.ethz.ssh2.InteractiveCallback cb) throws IOException
authenticateWithKeyboardInteractive in class ch.ethz.ssh2.ConnectionIOExceptionpublic boolean authenticateWithAgent(String user, ch.ethz.ssh2.auth.AgentProxy proxy) throws IOException
authenticateWithAgent in class ch.ethz.ssh2.ConnectionIOExceptionpublic String[] getRemainingAuthMethods(String user) throws IOException
getRemainingAuthMethods in class ch.ethz.ssh2.ConnectionIOException