If you want to locally access a cloud application that has the address 192.168.100.2:82
and can only be reached by your VM, you can use the technique below. That way you can access your local localhost:80
.
ssh -L LocalPortAccess:AppsIPAddresses:AppsPortAddresses user@VPSPublicIP -pXXXX
ssh -L 80:127.0.0.1:30001 [email protected] -p10013
If you want to access your local application with the application address 127.0.0.1:30001
then you can access it on your VPS on port 80
you can use the technique below: