You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

How to configure a TransPort routers to have TCP Socket connections to serial ports using SSH

TransPort routers can be configured in order to use SSH for TCP Socket connection to the serial port, this is useful if you would like to access via SSH to a device connected to the serial port of the TransPort.

In order to configure this, the basic idea is to configure an SSH server listening to a specific port, to forward the connection to the local port on which the ASY port is listening to:

 

1) Navigate to the WEB UI section Configuration-Netwrok > SSH Server > SSH server 1 and configure the settings as the picture below:


User-added image
Regarding the settings above please note:

 
- SSH server 1 is used for this purpose, instead of SSH server 0 that is by default the one to use for access the TransPort itself.
- Use TCOP port: 2001 is just an example and can be changed to another number
- Hostkey 1 Filename: All new Digi Transport routers have a factory generated private key named privSSH.pem and this is the one used in this example. 

- You have to spread SSH sessions over the SSH Servers, so for each SSH Server be sure to set “Allow up to X connections” to 1.
- The Port forwarding is configured with "127.0.0.1" address and "4000" port, as the connection must be forwarded to the TransPort itself on the local port (4000 in this example) on shich the ASY port, connected with the serial device behind the TransPort, is listening to.
- If you need to configure the same for other serial ports, use the other SSH Servers (SSH Server 2, etc.) and follow the same logic, i.e. 2002 -> 4001.
 
 
2) Test the configuration: connect the Transport to the Local COM port of a computer or another serial device and open a SSH connection with an application like PuTTy to the IP address of the Transport and TCP Port 2001:

User-added image

Data is sent from TCP socket and received on COM1:


User-added image

You can see the connections estabilished going to: Management – Connections > IP Connections > General Purpose Sockets:

User-added image

 

Please note that for general configuration of the serial port using TCP socket (not SSH), the TransPort routers have a built int Wizard that guide you in the setup and instructions.

Last updated: Feb 27, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?