[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#228064: additional Information / workaround / solution?



Hello,
got the same problem today and readed some manpages 
at first and used a little bit google also nerved some people on irc ;)

man ssh

-g      Allows remote hosts to connect to local forwarded ports.

comment from me:
wich can be understand it is for use when doing 
ssh -L  (lokal) not when doing ssh -R

man sshd_config

GatewayPorts
Specifies whether remote hosts are allowed to connect to ports         
forwarded for the client.  By default, sshd binds remote port
forwardings to the __loopback__ address!!! ......  The
default is ``no''

So just edit /etc/sshd_config on the remote (-R) host
and type in
GatewayPorts yes


for checking if this works use
netstat -an | grep $yourportnumber
it shows something like if not written GatewayPorts....
tcp        0      0 127.0.0.1:$yourportnumber        
0.0.0.0:*               LISTEN 

and shows 
if GatewayPorts yes

tcp        0      0 0.0.0.0:$yourportnumber           
0.0.0.0:*               LISTEN


So all the time keep RTM :)

regards,
Daniel





-- 
Retrieve my key from: 
www.keyserver.de 
blackhole.pca.dfn.de 
horowitz.surfnet.nl 
keyID 7B196671
or send email with subject "fetch key"

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: