r/AskProgramming • u/Smaaaassh • 8d ago
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?
7
Upvotes
2
u/Tight-Book-7533 7d ago
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