Difference between revisions of "Ssh - reverse ssh untuk tunnel web lokal ke vps"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 22: | Line 22: | ||
AllowTcpForwarding yes | AllowTcpForwarding yes | ||
GatewayPorts yes | GatewayPorts yes | ||
+ | |||
+ | Restart | ||
+ | |||
+ | sudo su | ||
+ | /etc/init.d/ssh restart |
Revision as of 11:54, 7 January 2021
Di VPS domain-nya misalnya
coba.vps.com
Server Lokal (80) -- coba.vps.com (80)<--- user http://coba.vps.com
di Server Lokal
ssh -NR portvps:localhost:portlocal user@domain.di.vps ssh -NR 80:localhost:80 user@coba.vps.com
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