I think WebRTC is better than SSH-ing for connecting to Mac terminal from iPhone
macky.dev
macky.dev
Pretty much every developer out there has some kind of tooling that does this already, that also does more.
This is a cool little project, but I cannot imagine paying for it.
https://github.com/artpar/terminal-tunnel
P2P with webrtc (pion ftw) with e2ee
client side is webui so you can use on any device
ps: the default Cloudflare Worker from my account is already maxed out so you will need your own exchange (self host on your account)
If you want to sell software, fine, but I want to buy it then.
Release a v2? Sure, I’ll probably buy again.
I have bought 4 versions of littlesnitch and 3 versions of prompt (5 if you count the macos versions too).
But if I see another subscription I’m just clicking off.
For company stuff I love subscriptions, I don’t have to ask bean counters for money each time there is a new version, they just approve monthly payments and we are done.
Then you’re all in for like $3. What about webRTC makes this better?
IMO terminals are still the fastest way to do a lot of things on a phone, but it's a much better experience on Androids with keyboards for the purpose.
And even on an iPhone, it's just fine. Python works really well as a shell for quick calculations, and you can use a script with the -i flag to make it more accessible.
And I regularly ssh into my servers from my phone to run some small routine tasks.
Both these kinds of tasks involve extremely minimal amounts of typing, and little to no reading of output. So the small keyboard of the phone is not annoying, and neither is having a small screen.
My brother was having an issue with some of his servers and I was able to connect from an airplane in the middle of the night somewhere over the Atlantic Ocean. Crazy time to be alive :)
It is not at all safe and should absolutely not be on the FP.
/s
https://news.ycombinator.com/item?id=47122939 (yesterday, 3 points, 4 comments)
https://news.ycombinator.com/item?id=47103613 (Sunday, 1 point, 0 comments)
That said I think spzb's point is real, the signaling server is still a trust boundary even if the p2p channel itself is encrypted. Tailscale sidesteps a lot of that by having a more battle-tested auth model tbh.
On the "why would you even want this on phone" thing though, I guess I disagree a bit, I've been building something related: Xtro, terminal + source control + AI agent on iPhone connected to Mac, and like the use case is surprisingly legit once the layout is actually designed for mobile. Emergency deploys, quick fixes, that kind of thing.
I also love seeing it used for 'kill the jump box' and file transfer. Just drives me crazy that we lets files sit on file providers.
Especially if you are transferring in the office! Send it right over the LAN and could be instant. Being forced to upload + download from remote servers frustrates me.
Just kidding
When the mac app is running it makes an outbound connection to my signaling server and registers itself under the account. iPhone also connects to this same signaling server to request a connection to this mac. Once both the host and remote are verified it establishes a direct p2p webrtc connection.