Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, say that you have a webapp on your local machine on port 3000 but your local machine has no public IP configured. How do you show this app to your friend who wants to access it via the internet, assuming you have ssh access to a remote machine called remote1 that has a public IP (and you want your friend to access your webapp through port 9000 of remote1, i.e. by putting in browser http:<remote-one-public-ip>:9000)?
Answer

ssh -R 9000:localhost:3000 remote1

^^ -R is for Remote port forwarding

^^^ note, localhost is referring to localhost on your machine


Question
In linux, say that you have a webapp on your local machine on port 3000 but your local machine has no public IP configured. How do you show this app to your friend who wants to access it via the internet, assuming you have ssh access to a remote machine called remote1 that has a public IP (and you want your friend to access your webapp through port 9000 of remote1, i.e. by putting in browser http:<remote-one-public-ip>:9000)?
Answer
?

Question
In linux, say that you have a webapp on your local machine on port 3000 but your local machine has no public IP configured. How do you show this app to your friend who wants to access it via the internet, assuming you have ssh access to a remote machine called remote1 that has a public IP (and you want your friend to access your webapp through port 9000 of remote1, i.e. by putting in browser http:<remote-one-public-ip>:9000)?
Answer

ssh -R 9000:localhost:3000 remote1

^^ -R is for Remote port forwarding

^^^ note, localhost is referring to localhost on your machine

If you want to change selection, open document below and click on "Move attachment"

SSH Tunnel - Local and Remote Port Forwarding Explained With Examples - Trackets Blog
t can be any server on the internet, as long as you can connect to it. We’ll tell SSH to make a tunnel that opens up a new port on the server, and connects it to a local port on your machine. $ <span>ssh -R 9000:localhost:3000 user@example.com The syntax here is very similar to local port forwarding, with a single change of -L for -R. But as with local port forwarding, the syntax remains the same. First you need to specify th

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.