ssh remote port forwarding
علی ذوالفقار
1399/03/02 23:33:57 (13)
to forward remote port to local machine , use ssh port forwarding :
 ssh -R remoteport:local-address:localport user@server
 ssh -R 8080:127.0.0.1:8080 root@myserver.com
 autossh -M 0 -R remoteport:local-address:localport user@server
Gateway Port Forward must be enabled in sshd_config file :
vi /etc/sshd_config
find and change GatewayPorst to yes :
GatewayPorts yes
now save config file and restart sshd service :
systemctl restart sshd
or
service sshd restart
Back