A laptop makes SubEthaEdit difficult to use, as sharing a document may not be possible through the wireless or other locked networks a laptop may be on. However, with a static server available on the Internet, and the magic of SSH, SubEthaEdit running on a laptop can be made available to the world.
First, punch a hole through the firewall (if any) of the server to TCP port 6942. This requires administrative access, as does the next step. Reconfigure sshd on the server to allow GateWayPorts, usually in /etc/ssh/sshd_config file:
First, punch a hole through the firewall (if any) of the server to TCP port 6942. This requires administrative access, as does the next step. Reconfigure sshd on the server to allow GateWayPorts, usually in /etc/ssh/sshd_config file:
GatewayPorts yes
And then restart sshd. On the laptop, launch SubEthaEdit, then set up the following in your ~/.ssh/config configuration file:
Host server.example.org
RemoteForward 6942 127.0.0.1:6942
Then connect to the server by typing, for example:
ssh server.example.org
Thereafter, other people should be able to connect back to the laptop via see://server.example.org thanks to the SSH RemoteForward. If the remote server runs SubEthaEdit itself, then pick a different port for the laptop, such as 9999, assuming a port 9999 hole in the server's firewall has been created:
Host server.example.org
RemoteForward 9999 127.0.0.1:6942
Then, clients should be able to connect at see://server.example.org:9999.
•
[9,136 views]

