[erlang-questions] Port forwarding

37 views
Skip to first unread message

József Bérces

unread,
Oct 25, 2011, 2:31:44 AM10/25/11
to erlang-q...@erlang.org
Is it possible to set up port forwarding with the erlang SSH client?
 
Thanks,
Jozsef

Attila Rajmund Nohl

unread,
Oct 25, 2011, 4:39:49 AM10/25/11
to erlang-questions
2011/10/25 József Bérces <jozsef...@ericsson.com>:

> Is it possible to set up port forwarding with the erlang SSH client?

As far as I know, the OTP SSH client doesn't have any option that
would support this. However, you can open a connection using
ssh:connect, then pass along data that connection using the
ssh_connection module. So you should be able to implement a tunnel
over the OTP SSH client.
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Miriam Pena

unread,
Nov 2, 2011, 1:01:50 PM11/2/11
to erlang-q...@erlang.org
There are a couple of "not yet officially supported" functions in the module ssh_connection named direct_tcpip and tcpip_forward. We are using the first one to set up a ssh tunnel in a project and so far we have not encountered any problem.

/Miriam Pena

Reply all
Reply to author
Forward
0 new messages