Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Faisal Mahmud
Author

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Share


How to map ports on a remote server thru an SSH tunnel

Faisal MahmudFaisal Mahmud

Sometimes when You are developing locally You might want to connect to a remote server without opening up a lot of ports on the server.

This is a simple trick to easily access services on a remote server without exposing the actual ports on the server.

$ ssh -N -L 1234:localhost:1234 mickeymouse@example.com

The above means map port 1234 on localhost to port 1234 on server example.com

NOTE: The above will only work if You have proper credentials and SSH access to the server.

Happy coding!

Faisal Mahmud
Author

Faisal Mahmud

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Comments