Loriot support a feature called SSH tunnel service. With this, a gateway owner can connect to his/her gateway from anywhere when Loriot Packet Forwarder is running.


LINUX


You can find the unique command for your gateway at the gateway dashboard (see attached image for reference)


Here is an example:

ssh -o "ProxyCommand proxytunnel -v -E -p eu1.loriot.io:747 -d 555555FFFF555555.gw.eu1.loriot.io -H 'Bearer: c07f0378-6812-444b-be1e-f9eaea9876ce'" root@localhost


root is the user name on the gateway which you normally use. if it is not root then you must change it to an appropriate name. 


usual error messages:

1.

/bin/bash: line 0: exec: proxytunnel: not found
ssh_exchange_identification: Connection closed by remote host


to fix this, you need to install proxytunnel package


2.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
...


to fix this just run the command which the error message recommends.


WINDOWS


Putty version

You need to copy the contents of proxytunnel-1.9.7-cygwin.zip next to putty.exe (usually c:\Program Files\putty folder)


In Putty, go to Connection / proxy in the menu and set the following parameters:


Proxy type: Local

Proxy hostname: loriot

Port: 22

Do DNS name lookup at proxy end: Auto

Telnet Command or local proxy command: proxytunnel -v -E -p eu1.loriot.io:747 -d 555555FFFF555555.gw.eu1.loriot.io -H 'Bearer: c07f0378-6812-444b-be1e-f9eaea9876ce'

NOTE: this line was copied from the example above, you need to copy this section from gateway dashboard!


Go to Session in the menu and set the following parameters:

Hostname: loriot

Port: 22

Connection type: SSH


Cygwin version


You need to install Cygwin from https://cygwin.com/install.html


During installation, you can select packages which should be installed. At a bare minimum you will need:

-openssh

-connect-proxy


When installation finished, just start Cygwin terminal and please read this guide's LINUX section for making a connection