3 ms·
My company blocks ssh. Is there a way to tunnel this through HTTP?
by amelius 2y ago
My company blocks ssh. Is there a way to tunnel this through HTTP?
- prmoustache 2y agoUse that from home or a mobile phone connection? You probably aren't supposed to update your personal website and stuff when you are working for your company anyway.
- chasil 2y agoI have heard that SSH could be tunneled over DNS UDP packets. This looks like a decent article, will read later. https://medium.com/@rogergalo/learn-how-easy-is-to-bypass-firewalls-using-dns-tunneling-and-also-how-to-block-it-3ed652f4a000 https://medium.com/@rogergalo/learn-how-easy-is-to-bypass-fi...
- palata 2y agoNot sure if it has to go that far. Probably it's just blocking port 22.
- mbreese 2y agoAgreed. You can host both SSH and HTTPS on port 443. I know this used to be possible with HAProxy, but now Nginx can do it as well. This way you are hosting normal HTTPS traffic when a browser is used and SSH otherwise. Now, if your company is actually blocking the SSH protocol, you’ll have to do something like tunneling SSH through SSL, which is also possible… but not as easier IIRC.
- deleted 2y ago[deleted]
- palata 2y agoI agree. Something like what GitHub offers? https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port https://docs.github.com/en/authentication/troubleshooting-ss...
- johnklos 2y agoStupid company! I keep a machine which has sshd listening on the IMAPS port (993) for when I'm traveling. It's amazing how many free networks don't allow ssh, but with -J and sshd on port 993, that really doesn't matter.
- lormayna 2y agoA NGFW, frequently used in the enterprise environments will block it. They are checking the package signatures, not only the YCP ports.
- cuanim 2y agoCockscrew might fit your usecase[1] [1] - https://github.com/bryanpkc/corkscrew https://github.com/bryanpkc/corkscrew
- mbs159 2y agoAre you sure that they are blocking SSH packets, or just port 22? If they are blocking the port, it's good practice to use something other than 22 anyways