News for hackers. Stuff that matters.
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.