If the remote host is running both a firewall and the Secure Shell daemon (SSH daemon) you can use SSH port forwarding to
tunnel network traffic to a DevHub server running on the remote host machine. Alternatively, if the host is accessible via
SSH, you can configure Eclipse to route its network traffic through a SOCKS proxy client such as PuTTY. The client forwards
network traffic via the SSH daemon to the remote host machine.
Restriction: It is not possible to tunnel network traffic to remote
Micro Focus Directory Servers. If you are working with remote
Micro Focus Directory Servers the firewall must be configured to allow traffic to the Directory Server (UDP and TCP). From the Server
Explorer view the Open Administration Page,
Show Catalog and
Show spool context menu items will not work correctly if the firewall is blocking traffic to the Directory Server and/or Enterprise
Server.
The following examples shows the two methods of configuring a connection to a host behind a firewall.
Tunnel DevHub communications through SSH
This method enables you to tunnel through SSH to a DevHub daemon and/or server:
- In the Remote Systems view, click
(Define a connection to remote system).
This opens the
New Connection dialog box.
- Click
Micro Focus DevHub using SSH, and then click
Next.
Note: You can also use the
Micro Focus DevHub using SAMBA, NFS etc or
Micro Focus DevHub using RSE connection types.
- In the
Host name field, type the host being connected to.
- Click
Next.
- In the
Available Services pane, click
.
This displays the available properties in the
Properties pane.
- Set
Server port, replaces ${port} in command to the port number (or port range) you want the DevHub server to use.
Note: If set to 0 the DevHub server allocates an available port.
- Set
Tunnel communications through SSH (SSL/TLS must not be enabled) to
true.
If the DevHub daemon/server has been configured to use SSL/TLS, it will not be possible to tunnel the network traffic as the
certificate checks will fail.
- Click
Finish if you do not need to configure sftp file or ssh shell subsystem information.
Routing traffic through a SOCKS proxy client
This method requires two-step configuration, firstly, you need to configure the PuTTY Telnet and SSH client to act as a proxy
client. Secondly, you will need to configure Eclipse to use the SOCKS network connection type to communicate network traffic.
Note: You need the latest version of the PuTTY Telnet and SSH client. Download it from the PuTTY website -
click here.
Configuring PuTTY as the proxy server
- In the PuTTY Telenet and SSH client, in the left panel, click
Connection > SSH > Tunnels.
This displays the
Options controlling SSH port forwarding panel.
- Type an available listening port in the
Source port field.
- Click
Dynamic.
- Click
Add.
This adds the port number prefixed with a "D" in the
Forwarded ports field.
- In the left panel, click
Connection > SSH > X11.
This displays the
Options controlling SSH X11 forwarding panel.
- Check
Enable X11 forwarding.
- In the
X display location field, type
localhost:0.
- In the left panel, click
Session.
This displays the
Basic options for your PuTTY session panel.
- In the
Host Name (or IP address) field, type the name or IP address of the remote server you want to connect to.
- In the
Saved Sessions field, type a descriptive name for the session.
- Click
Save.
This creates an entry in the
Saved Sessions list.
- Click
Open.
This starts a terminal session. Type the username and password when prompted.
- In the terminal window, type
echo $DISPLAY and press
Enter.
You should get a response similar to:
localhost:10.0
Make a note of the value that is displayed. It is required when configuring the Debug preferences.
Note: If you get a blank response to the
echo $DISPLAY command, right-click on the PuTTY terminal window header, and then click
Event Log. This opens the
PuTTY Event Log dialog. Scroll upwards from the bottom and make a note of any messages relating to access denied, forwarding refused or no
program. Pass these details to your system administrator for resolution.
Configuring the Eclipse network connection
- In Eclipse, click
Window > Preferences > General > Network Connections.
This opens the
Network Connections preferences dialog box.
- In the
Active Provider list, select
Manual.
- In the
Proxy entries table, click the
SOCKS row.
This highlights the row.
- Click
Edit.
This opens the
Edit Proxy Entry dialog box.
- In the
Host field, type
localhost.
- In the
Port field, type the port number used in the
Source port field in PuTTY.
- Click
OK.
This populates the
Host and
Port cells in the
Proxy entries table.
- Click
Window > Preferences > Micro Focus > Debug.
This opens the debug preferences.
- In the
Default X Server (DISPLAY) field, type the
DISPLAY value returned by the remote machine in step 13.
- Click
Apply and Close.
Note: Steps 13 from
Configuring PuTTY as the proxy server section, and 8-11 from
Configuring the Eclipse network connection section need to be performed each time the proxy server is started.
When you have completed the configuration you need to create a remote project. Specify
Remote file system (RSE) and select
Micro Focus DevHub using RSE when choosing the remote system type. See
Creating remote projects for more details on creating a remote project.