News for hackers. Stuff that matters.
Re:Actual SSH over HTTPS by mmzeeman on Sunday December 24, 2023 @04:20AM (#38752334)
Back in the day, XS4ALL, a Dutch internet provider had exactly this feature. They provided ssh access via port 80. It saved me a couple of time while I was traveling and the only way to get internet access was via hotel WiFi, which blocked everything except port 80. If anybody from XS4ALL is reading this... Thanks!
Re:Actual SSH over HTTPS by pietro72ohboy on Sunday December 24, 2023 @06:06AM (#38752687)
XS4ALL was amazing and it’s a genuine shame that KPN corporate decided to dissolve the brand. But I guess, KPN wouldn’t have been comfortable with XS4ALL’s hacker ethos anyways…
Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @07:20AM (#38753002)

  had exactly this feature. They provided ssh access via port 80.
OP is describing something different:

- different port (443, not 80)

- different protocol used on that port (https, not ssh)

Re:Actual SSH over HTTPS by narag on Sunday December 24, 2023 @09:54AM (#38753805)
It seems the same to me: using a port that's open for a commonly used protocol, so http (80) in the 90s, https (443) now. Of course the protocol is different, that's the point!
Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @10:14AM (#38753951)
It's not the same at all. OP's port 443 is not 'open' in the same sense that GGP's port 80 was 'open'.

In the old days, only the port number mattered. Today, DPI means the protocol matters as well.

Re:Actual SSH over HTTPS by narag on Sunday December 24, 2023 @10:22AM (#38754025)
The SSL negotiation part happens before any other communication. Once the encrypted connection is established, how do you analize the protocol?

Edit: I tested that time ago:

https://news.ycombinator.com/item?id=38753897

And to save roundtrips: I believe it must be possible to analyze encrypted traffic to find out which protocol is used. But I doubt that the hospital admins are so motivated or sophisticated.

Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @10:40AM (#38754179)
> The SSL negotiation part happens before any other communication.

An SSH server and client do not use SSL/TLS to set up the connection. They use the SSH protocol.

As soon as you connect to an SSH server, the server sends an identification string. The identification string always starts with:

  SSH-
It's trivial to detect.

In the old days, corporate firewall rules were based solely on port numbers. So you could connect to an outside SSH server running on port 80, even if port 22 was blocked. Nowadays, an SSH server running on any port (80, 443, or any other) can easily be detected and blocked.

Re:Actual SSH over HTTPS by narag on Sunday December 24, 2023 @11:32AM (#38754548)
OK, I believe you, but then, does the trick described in the article work?

I ask because if it works, the principle is the same: using a commonly used protocol to circumvent limitations. It used to be easier to do then, it's more involved now.

In other words: is it possible to tunnel anything through https?

Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @11:36AM (#38754572)
> the principle is the same: using a commonly used protocol to circumvent limitations

No it's not. The earlier method used only a commonly used port, and did not require the use of a commonly used protocol.

Re:Actual SSH over HTTPS by tedunangst on Sunday December 24, 2023 @11:29AM (#38754536)
The purpose of using the TLS layer is to prevent the DPI.
Re:Actual SSH over HTTPS by indymike on Sunday December 24, 2023 @10:27AM (#38754075)
Dpi has been around for a very long time.
Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @10:43AM (#38754213)
Yes, but I'm specifically talking about a time when many corporate networks weren't yet using DPI.
Re:Actual SSH over HTTPS by mbreese on Sunday December 24, 2023 @12:42PM (#38755086)
Many of them still aren’t. Case in point - the firewall from the original post.
Re:Actual SSH over HTTPS by rahimnathwani on Sunday December 24, 2023 @12:51PM (#38755155)
OP describes tunneling SSH within another protocol. In the absence of DPI, this wouldn't be required.
Re:Actual SSH over HTTPS by emmelaich on Sunday December 24, 2023 @06:24AM (#38752762)
Fellow xs4all user here, it was fantastic, the real spirit of the early internet.

Sort of a redo of the pirate radio ethos of the 60s.

https://en.wikipedia.org/wiki/Pirate_radio_in_Europe

Re:Actual SSH over HTTPS by xur17 on Sunday December 24, 2023 @09:44AM (#38753739)
I didn't realize they were a full on ISP! I recall using them back in the day as a newsgroup provider.
Re:Actual SSH over HTTPS by nerdbert on Sunday December 24, 2023 @10:02AM (#38753873)
XS4ALL sort of lives on in the form of Freedom - https://freedom.nl/en
Re:Actual SSH over HTTPS by achillean on Sunday December 24, 2023 @02:54PM (#38756240)
Among the non-standard ports for SSH, 443 is in the top ports used:

https://www.shodan.io/search/facet?query=ssh&facet=port https://www.shodan.io/search/facet.png?query=ssh&facet=port

Port 80 is a lot less common though.