Displaying 1 result from an estimated 1 matches for "sshquare".
Did you mean:
square
2018 Jan 02
3
Restricting port forwarding on remote server
> From: Juanito <juam at posteo.net>
>
> If I create a tunnel like this from the client side,
>
> ssh -nNTv -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o
IdentitiesOnly=yes -o UserKnownHostsFile=$known_hosts_file -i
/etc/sshquare/id_rsa -R $port:localhost:22 $user@$host
>
> would it be possible on the server side to restrict $port to say 10000
> and deny it on all other ports. In a way that $user is only allowed to
> forward a local port and bind it to 0.0.0.0:10000 but nowhere else.
>
> I have creat...