Problem using ssh client in kubuntu 15.04, -R is not working.

Colin Watson cjwatson at ubuntu.com
Sun Apr 26 08:54:21 UTC 2015


On Fri, Apr 24, 2015 at 07:31:46PM +0300, Антон Мацюк wrote:
> Hi! I have a problem using kubuntu 15.04: When I do "ssh -l user -p 44
> -L 8090:localhost:8090 -L 1234:localhost:5900 -R 5700:localhost:5900
> my.hostname.org -N" - it opens connection, but when I try to use 5700
> at remote computer, it says in local console "WARNING: Server requests
> forwarding for unknown listen_port 5700". I'll appreciate any help.

You say that you're trying to use port 5700 on the remote system, but
you haven't said which host name you were trying to use.  If you aren't
sure, adding the -v option to ssh should cause it to emit a debug
message something like:

  debug1: client_request_forwarded_tcpip: listen localhost port 5700, originator 127.0.0.1 port 49286

... when you try to connect.  I would expect to see your symptoms if
you're trying to connect to something other than localhost.  If you
actually need to connect to something other than localhost at the remote
end, you'll need to enable GatewayPorts on the server and specify a
bind_address to ssh -R; see the ssh(1) and sshd_config(5) manual pages
for details.

> It looks like some bug.

I think this is very likely to be a configuration mistake rather than a
bug; the forwarding facility itself works fine.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list