Ssh - reverse ssh untuk tunnel web lokal ke vps
Sumber: https://onnocenter.or.id/wiki/index.php/Ssh_-_reverse_ssh_untuk_tunnel_web_lokal_ke_vps
Di VPS domain-nya misalnya
coba.vps.com
Server Lokal (80) -- coba.vps.com (80)<--- user http://coba.vps.com
Atau bisa di coba
di Server Lokal
ssh -NR portvps:localhost:portlocal [email protected]
untuk coba.vps.com:8080 ke localhost:80
ssh -NR 8080:localhost:80 [email protected]
untuk coba.vps.com:80 ke localhost:80 bisa di coba
ssh -R \*:80:localhost:80 -N [email protected]
Di Server VPS
Edit sshd_config
sudo vi /etc/ssh/sshd_config
Tambahkan
AllowTcpForwarding yes GatewayPorts yes
Restart
sudo su /etc/init.d/ssh restart
Dari sisi User
http://coba.vps.com:8080