Comment
Comment by remram
You can do this with ssh (and socat or mkfifo):
You can relay through any other SSH server if your target is behind a firewall or subject to NAT (for example the public service ssh-j.com). This is end-to-end encrypted (SSH inside SSH):
(originally posted on the thread for "beam": https://news.ycombinator.com/item?id=42593135)