You are not logged in.

#1 2019-06-15 18:08:18

regid
Member
Registered: 2016-06-06
Posts: 201

ssh port forwarding: Only one user can tunnel data? How to circumvent?

Assuming no deliberate measures to prevent other users from using the tunnel created by

ssh -L 127.0.0.1:4000:127.0.0.1:5000 server

, can any user on the client machine read/write to client:4000? Can any user on the server machine read/write to server:5000? If the answer is that not any user has permissions, how to let more users use the tunnel? Does letting more users use the tunnel what the ssh's gateway option is about?


powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#2 2019-06-16 07:50:30

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: ssh port forwarding: Only one user can tunnel data? How to circumvent?

Any process on the client will be able to connect to port 4000 and access whatever is on the server at port 5000. The SSH server is not binding a listening socket, so that's beyond the scope of SSH forwarding - it depends what the process on the server that is listening on port 5000 is bound to as to what can access it.

Offline

Board footer

Powered by FluxBB