30
u/Roversword Jul 25 '25
To be pedantic: "How SSH with private/public key authentication works"
While certainly the safer way, unfortunately the username/password approach is still used a lot.
And I guess this is where step 13 to 15 differ.
1
1
u/stackdynamicsam Jul 26 '25
To be pedantic, if, as above, it is posed as a question: “How does SSH with private/public authentication work?”
1
u/Roversword Jul 26 '25
Touché, well played :)
2
u/stackdynamicsam Jul 26 '25
Thanks. To be honest I mentioned this not as a retort to you, but rather because this happens all the time in article titles and it irritates me a lot.
I saw “How SSH works?” and was like, is that “How does SSH work?” or “How SSH works.” PICK A LANE.
I know it’s because English is deceptively hard as a second language - but I retain the right to be annoyed.
2
u/Roversword Jul 26 '25
No worries, I didn't take offense and I didn't consider it as a retort.
I absolutely agree with your sentiment and understand your annoyance. English is difficult to "master" (and I know, it is not my first/native language).
6
1
1
0
-2
Jul 25 '25
[removed] — view removed comment
8
3
2
u/randomatic Jul 25 '25
Purely based on the diagram, yes at step 10&11. An attacker can MITM. (This is the same for any DH exchange).
It's also why you get the "do you want to trust this server key" when first connecting. Once stored, of course, the MITM would have a different public/private key.
Obviously if you're doing public/private key login, later steps won't succeed, but if you're only doing password I think they do.
0
u/Big-Contest8216 Jul 25 '25
CVE
2
u/Scar3cr0w_ Jul 25 '25
Or a myriad of other misconfigurations?
-1
u/Big-Contest8216 Jul 25 '25
Explain who? Misconfigurations from where software or hardware?
6
u/Scar3cr0w_ Jul 25 '25
List all the ways SSH could be misconfigured that would enable someone to gain access.
Then list all the vulnerabilities that that could be leveraged to enable access over SSH.
There’s literally 100’s. Granted, if you are talking about a fully patched, perfectly configured SSH server that belongs to a company with no other services, no users to target, no web servers no other attack surface then, yea… you are right. CVE’s. Well, actually, no you aren’t, because it’s fully patched. So there are CVE’s… so 0days?
0
u/Big-Contest8216 Jul 25 '25
100%
1
u/Scar3cr0w_ Jul 25 '25
🤔
0
u/Big-Contest8216 Jul 25 '25 edited Jul 25 '25
OKay, Where did it come from? 0day
5
9
u/[deleted] Jul 25 '25
What site are these from?