I now use Shell In A Box, a web based remote terminal over https on my linux server. (my setup in post body)
github.comSubmitted by moonlune in freeAsInFreedom (edited )
The setup on my raspberry pi was pretty easy:
-
apt install shellinabox
-
slightly change the config file to add to use it on my proxy (/etc/default/shellinabox)
SHELLINABOX_ARGS="--no-beep --localhost-only --disable-ssl"
-
add the port to my Caddyfile (reverse proxy) (behind an authentication):
shell.my_website.xyz { reverse_proxy 127.0.0.1:4200 basicauth { my_name my_passwd_hash } }
-
restarted the systemd services for caddy and shellinabox (it's enabled by defalut when DLed)
And it's as simple as that, I now have access to my server from anywhere in the world, no ssh port open on my modem, and authentication is locked behind 2 passwords (the caddy passwd, and then the shell user password) + obscure url. It took me ~30 while mucking around.
HardHeartedBastard wrote
What do you use it for? It seems like a big security risk?