[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-19 Thread Goldstein Lyor (JIRA)


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16691669#comment-16691669
 ] 

Goldstein Lyor commented on SSHD-863:
-

Indeed it seems like something that can be done (as a *separate* module - e.g., 
_sshd-openssh-fwd_). However, I don't see it happening any time soon unless 
someone that is *not* part of the SSHD project takes it upon him/herself to 
contribute this code (including unit tests). The other way this can happen is 
this feature becomes very popular - and even then, my instinct tells me that we 
would need to rely on the *community* to contribute the code.

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Assignee: Goldstein Lyor
>Priority: Minor
>  Labels: future, wishlist
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-18 Thread JIRA


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690936#comment-16690936
 ] 

Björn Kautler commented on SSHD-863:


I had a quick look at the specs and it is actually not past of the standard SSH 
protocol, but an OpenSSH extension. You can find its technical description at 
point 2.4 of https://cvsweb.openbsd.org/src/usr.bin/ssh/PROTOCOL?rev=HEAD.
As far as I have seen it basically follows the same rules and flow as normal 
port forwarding, just with slightly different protocol messages.

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Assignee: Goldstein Lyor
>Priority: Minor
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-15 Thread JIRA


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16688306#comment-16688306
 ] 

Björn Kautler commented on SSHD-863:


Sure, I understand of course, thanks for looking into it.
In the meantime I worked around it with {{Runtime#exec()}} and require {{ssh}} 
to be present, but that is suboptimal of course. :D

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Priority: Minor
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-15 Thread Goldstein Lyor (JIRA)


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16688293#comment-16688293
 ] 

Goldstein Lyor commented on SSHD-863:
-

Thanks - I will look them over, but like I said - we have very limited R 
resources so unless it is relatively easy to add the required support or it 
becomes a popular request I don't see it done in the near future unless someone 
decide it is important enough for them to undertake and make the contribution.

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Priority: Minor
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-15 Thread JIRA


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16688167#comment-16688167
 ] 

Björn Kautler commented on SSHD-863:


Well, as I said, for the remote socket you don't need native code or a lib, as 
the remote sshd will talk to the socket. And for the local socket there are 
multiple libraries available, but I have no experience with them. For example 
https://github.com/jnr/jnr-unixsocket or https://github.com/mcfunley/juds or 
https://github.com/kohlschutter/junixsocket. The latter maybe looks best from 
description as it is ASL licensed and uses Java sockets API while the others 
seem not to.

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Priority: Minor
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SSHD-863) Add local/remote port forwarding to/from Unix sockets

2018-11-15 Thread Goldstein Lyor (JIRA)


[ 
https://issues.apache.org/jira/browse/SSHD-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16688137#comment-16688137
 ] 

Goldstein Lyor commented on SSHD-863:
-

{quote}
For documentation for example look at the ssh man page at 
https://man.openbsd.org/ssh. The description of the -L and -R options.
{quote}
We support the IP local/remote port forwarding in full - both on server and 
client. As far as _Unix_ sockets are concerned, there is no available Java 
library that I am aware of that provides this service since it involves 
*native* code. If you can recommend a good framework for it then we can think 
about this issue. However, since the feature is not in great demand (thus 
marked it as _Minor_), you might want to consider adding such support yourself 
(see _sshd-contrib_ package) - with some help from us. It can be a good 
exercise in using SSHD library as well as a welcome contribution. If it does 
become very popular we may consider adding support for it - again, depending on 
the availability of some 3rd party library that can provide this kind of 
support.

> Add local/remote port forwarding to/from Unix sockets
> -
>
> Key: SSHD-863
> URL: https://issues.apache.org/jira/browse/SSHD-863
> Project: MINA SSHD
>  Issue Type: Improvement
>Affects Versions: 2.1.0
>Reporter: Björn Kautler
>Priority: Minor
>
> Would be nice if MINA SSHD also supports forwarding sockets, not only ports.
>  Currently you can only forward from port to port, but SSH now can do from 
> port to socket, from socket to port, from port to port and from port to 
> socket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)