Show HN: Malai – securely share local TCP services (database/SSH) with others

https://news.ycombinator.com/rss Hits: 13
Summary

Introducing Malai TCP & A Bonus!malai-0.2.5 is out now! It brings a new feature to share your local TCP server with the world! Now you can share any TCP-based service running locally — including your SSH service, Postgres database, Redis, or even a custom TCP protocol — using the same seamless workflow that you used with malai http.Install malai today using:curl -fsSL https://malai.sh/install.sh | sh And run:$ malai tcp 5432 --public Malai: Sharing port 5432 Run malai tcp-bridge <id52> <some-port> to connect to it from any machine. This will share your local TCP server running on port 5432 with the world. You can connect to it from any machine using the command:$ malai tcp-bridge <id52> 9091 Listening on 127.0.0.1:9091 Now you can connect to localhost:9091 and it'll go through malai and connect to the exposed service.Share your SSH serverYou can even use malai tcp to expose your local SSH server for remote access — without opening port 22 publicly. First, make sure the OpenSSH server is running:Then, run the following on the machine where the SSH server is running:$ malai tcp 22 --public Malai: Sharing port 5432 Run malai tcp-bridge <id52> <some-port> to connect to it from any machine. On another machine, use the bridge command:$ malai tcp-bridge <id52> 9090 Replace <id52> with the ID printed by the malai tcp command. Once the bridge is running, SSH into your machine like this:ssh -p 9090 user@localhost You're connecting to localhost:9090, which is where the tcp-bridge is listening. It forwards your SSH traffic to the original machine via the Kulfi network. Make sure to use the correct user that exists on the remote machine.Use cases Secure your SSH server behind the Kulfi network. Share a local Postgres or Redis instance with your team. Demo a multiplayer game server or custom TCP service. Students can share networked apps or environments with instructors for real-time help or grading. Wait, we have more!We've also added a new malai folder command to share a folder...

First seen: 2025-05-27 14:56

Last seen: 2025-05-28 02:58