Multiple SSH Tunnels?

1 reply. Asked on January 1, 2019 by Armin
Hi Browserling!

How do I open multiple ssh tunnels? I have two web servers running for two web projects running on localhost:8080 and localhost:8081 and I want to test them at the same time. How do I do it?

Thanks, Armin
All answers
Peter Krumins staff
Answered on January 1, 2019
Hi Armin,

Thanks for your question. It is possible to create two tunnels. To open two or more tunnels, please open one tunnel first, then increment the port by one for the next tunnel.

For example, if the port for the first tunnel is 59000, then first run this command in one terminal:

ssh -NR 59000:localhost:8080 login_email@tunnel.browserling.com

And then increment the port by one to 59001 and run another tunnel command in the second terminal:

ssh -NR 59001:localhost:8081 login_email@tunnel.browserling.com

I hope this solves your problem. Please let me know if you've additional questions.

Sincerely,
Peter Krumins
co-founder, chief-ling
Please sign in to answer a question!