News for hackers. Stuff that matters.

Ask HN: Web-based personal terminal options?

I've just needed to ssh into a VPS to fix something pretty urgently but my laptop was on the fritz and held me up. Obviously a big single point of failure problem!

I don't have any other physical machines that I could give ssh key access as backup..

There must be a web-based personal terminal provider that you can set up on a permanent basis? Then you could access it from anywhere, even when out with mobile etc. But I'm not sure which to go with/trust.

Or do most people just have a cheap secondary laptop?

( 9 comments | 5 points | on HN )
Re:Ask HN: Web-based personal terminal options? by imhoguy on Friday November 15, 2019 @05:14PM (#21549327)
I use android phone with termux or juicessh and hacker keyboard app. Also pretty much every phone should work with tiny foldable Bluetooth keyboard.

If you want a mobile kit for hotel room without carrying laptop there you can try some HDMI screen mirroring dongle (Google Cast).

Re:Ask HN: Web-based personal terminal options? by ntw1103 on Friday November 15, 2019 @09:56AM (#21545273)
There are a lot of potential security problems with setting something like what you describe, but it is very possible.

If you wanted, you could run https://github.com/huashengdun/webssh on the sever you are trying to access, or something equivalent to a Boston server. This is something you should definitely host with TLS, and some form of authentication.

You could use something like this: https://github.com/PHPAuth/PHPAuth You could also use Okta.

Re:Ask HN: Web-based personal terminal options? by fabiomaia on Friday November 15, 2019 @03:06PM (#21548234)
What are these security problems?
Re:Ask HN: Web-based personal terminal options? by ntw1103 on Saturday November 16, 2019 @11:31PM (#21556572)
A good place to start looking would be https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Proje...

The steps I described would mitigate most of those.

Re:Ask HN: Web-based personal terminal options? by fasturdotcom on Friday November 15, 2019 @11:58PM (#21551094)
I built my own, Using codemirror.

NodeJs for the server which spawns a process to execute bash commands.

https://twitter.com/fasturdotcom

Re:Ask HN: Web-based personal terminal options? by a-saleh on Friday November 15, 2019 @03:44PM (#21548570)
I use my phone. I have termux on android, with password protected ssh-key and it did save me a few times.

I assume there is something like that for iOS, or other phones.

Re:Ask HN: Web-based personal terminal options? by dinkleberg on Saturday November 16, 2019 @08:31AM (#21552527)
I use google cloud shell all the time and it works really well. It spins up an ephemeral container, but it persists the home directory.
Re:Ask HN: Web-based personal terminal options? by garmaine on Friday November 15, 2019 @05:11AM (#21543713)
What you described would be hideously insecure. Get a backup laptop.
Re:Ask HN: Web-based personal terminal options? by jhow15 on Friday November 15, 2019 @05:41AM (#21543827)
Alright - thank you!