r/AskProgramming • u/Smaaaassh • Jul 20 '26
Web-based SSH client
I want to write some code while at the library. The computers I use don't allow the console to be used or to install any applications.
I figure a good solution will be to ssh into a VPS from a web-based terminal. Apparently such a terminal would require a backend, but since ssh is all I need on the terminal the overhead shouldn't be much. I would install my environment tools and neovim on my own VPS. I just need a terminal then, that can SSH into it. What's the safe, cheap, solution?
I've heard of Cockpit, Cloudflare SSH, and TailScale, but haven't looked into those much. Do you have any suggestions?
4
u/Ractorius Jul 20 '26
There is a SSH extension for Chrome directly from google.
2
u/Tight-Book-7533 Jul 20 '26
If you just want to code, why not use something like the Github Codespaces (it's Vscode running in browser), this is what I use for coding. All you need is a web browser and your Github account. I set up a Git bare repository on the VPS, with custom post-commit action to move the code to the web accessible directories. In Codespaces, it is set up as a second remote repo (the first one being the Github repo itself),,so I can push the code to my VPS for deployment / testing
4
u/stonerbobo Jul 20 '26
Try https://vscode.dev/ , you get a full VS Code experience terminal included. Also look at ghostty-web and similar projects, anything based on ghostty is going to be pretty solid.
1
u/aocregacc Jul 20 '26
with a cloudflare tunnel you don't even need a VPS, you could just leave a computer running at home and connect to it over the web. I think the only thing you'd need to pay for is a domain.
1
u/Imaginary_Cicada_678 Jul 20 '26
no need to implement something complicated here, like you just need tunneling to your nodejs app, take ngrok, or pinggy. it will tunnel localhost web app node-web-console (search on GitHub) through public url, that you just enter in your library pc browser.
2
u/N0JMP Jul 21 '26
Just host Apache guacamole, accessible over the web. Can do RDP, VNC, SSH, etc.
Kasm too.
1
u/Individual-Flow9158 Jul 20 '26
There are terminals right there in the webmin interfaces from a lot of cloud providers. Probably more intended for emergency use, and could be as slow as the rest of the webmin interface.
1
u/[deleted] Jul 21 '26
[removed] — view removed comment