Trouble enabling GatewayPorts for Remote Port Forwarding over SSH

خرید بک لینک

I'm trying to use an ubuntu server to do remote port forwarding over ssh.

I've edited /etc/ssh/sshd_config to contain the following lines at the bottom of the file:

...

Match User david
  GatewayPorts yes
  AllowTcpForwarding yes

Then I tried testing the config worked by rebooting the server, logging in and running the following:

sshd -T | grep -E 'gatewayports|allowtcpforwarding'

Unfortunately the result is:

gatewayports no
allowtcpforwarding yes

What am I missing to enable this so I can use remote port forwarding for testing local applications remotely?

ssh -R 8080:localhost:8080 [email protected]

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 277 تاريخ: دوشنبه 31 خرداد 1395 ساعت: 5:19

صفحه بندی