SSH through HTTPS
Posted by jpluimers on 2020/05/04
Often, hotspots only allow http/https traffic. Other traffic – like SSH – is blocked. Nowadays, fewer hotspots block that, but too many still do.
So it can be worth a while to route your SSH server through HTTPS (I don’t like Web-based SSH that much as terminal emulation in browsers isn’t that well yet, but that seems to change rapidly, more on that in the “Further reading” section below).
After some background reading at apache – Tunnel over HTTPS – Stack Overflow, here are a few links that help you do it:
Server side: DAG: Tunneling SSH over HTTP(S).
You need:
- An internet connected Apache server (eg. with IP address 10.1.2.3)
- A FQDN that points to this IP address (eg. ssh.yourdomain.com)
- A virtual host configuration in Apache for this domain (eg. /etc/httpd/conf.d/ssh.yourdomain.com.conf)
- A configuration to adapt ssh to use the HTTP tunnel
Read more at DAG: Tunneling SSH over HTTP(S) and SSH over SSL, a quick and minimal config..
Client side: Using SSH over the HTTPS port · GitHub Help.
Steps:
- Test of it works at all
- Edit your local ~/.ssh/config file to redirect SSH to HTTPS
Read more at Using SSH over the HTTPS port · GitHub Help.
Using Putty and an HTTP proxy to ssh anywhere through firewalls | Me in IT.
Tunneling SSH through HTTP proxies using HTTP Connect – ArchWiki.
Running SSHD on port 443.
Not all proxy configurations and hotspots support this. But it might be worth a look: SSH Over Proxy.
Further reading: Web-based SSH.
SSH plugins for browsers:
Web based SSH:
- Shell In A Box – A Web-Based SSH Terminal to Access Remote Linux Servers / Shell in a box – LinuxIntro /shellinabox – Web based AJAX terminal emulator – Google Project Hosting; works on OpenSuSE too; tried it with the shellinabox-2.10-9.1.1 that does need very little configuration.
- SSH from a web browser tutorial | Linux User & Developer – the Linux and FOSS mag for a GNU generation.
- WebSSH.
- Free web-based SSH client – serFISH.com.
- SSH Online – ssh, terminal online, access your server, online ssh client, web ssh – ServerDo.in.
- SSH connectivity via Online Code Editor – Codeanywhere / 3.6. SSH Terminal : Support – Codeanywhere.
- liftoff/GateOne / Gate One ✈ Web Terminal Emulator and SSH Client | Liftoff Software.
- EricDaugherty.com – SSH Web Proxy – Getting Started.
- Ajaxterm for Java –.
- Commando.io – Manage servers easily online. / Security – Commando.io.
- KeyBox: A better way to SSH.
- Anyterm – Introduction.
- fgallaire/achilterm.
–jeroen






Leave a comment