<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Are you talking about running distributed Erlang transport over SSH tunnels or creating tunnels via the Erlang's SSH client/server applications?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It would certainly be nice if distributed transport supported such an option, albeit it's not a trivial change, that would involve similar effort to supporting multiple transports (<a href="https://github.com/erlang/otp/pull/121">https://github.com/erlang/otp/pull/121</a>).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If it's just for application-level port forwarding, then I would think leveraging the SSH server's port forwarding facility with the Erlang client-side tunneling, you can look at <span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial,sans-serif">ssh_connection:direct_tcpip/6, which does exactly that.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial,sans-serif">Serge</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 10:38 AM, József Bérces <span dir="ltr"><<a href="mailto:jozsef.berces@ericsson.com" target="_blank">jozsef.berces@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Can we establish SSH tunnels with pure Erlang code? I would be interested in setting up local and dynamic port forwarding.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Jozsef<u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>