Class AbstractSSHConnectionWithPortForwarding

    • Field Detail

      • m_LocalPort

        protected int m_LocalPort
        the local port for the SSH tunnel.
      • m_ScriptingPort

        protected int m_ScriptingPort
        the remote port for the scripting engine.
      • m_AssignedPort

        protected int m_AssignedPort
        the assigned port.
    • Constructor Detail

      • AbstractSSHConnectionWithPortForwarding

        public AbstractSSHConnectionWithPortForwarding()
    • Method Detail

      • setLocalPort

        public void setLocalPort​(int value)
        Sets the local port to connect to (SSH tunnel).
        Parameters:
        value - the port, -1 for automatically getting next available one
      • getLocalPort

        public int getLocalPort()
        Returns the local port to connect to (SSH tunnel).
        Returns:
        the port
      • localPortTipText

        public String localPortTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setScriptingPort

        public void setScriptingPort​(int value)
        Sets the port of the remote scripting engine to connect to.
        Parameters:
        value - the port
      • getScriptingPort

        public int getScriptingPort()
        Returns the port of the remote scripting engine to connect to.
        Returns:
        the port
      • scriptingPortTipText

        public String scriptingPortTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • newSession

        public com.jcraft.jsch.Session newSession​(String host,
                                                  int port)
        Returns a new session, connects and configures the tunnel.
        Specified by:
        newSession in interface SSHSessionProvider
        Overrides:
        newSession in class AbstractSSHConnection
        Parameters:
        host - the host to use
        port - the port to use
        Returns:
        the session