News for hackers. Stuff that matters.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by adontz on Saturday December 16, 2023 @11:41AM (#38665564)
I believe security models for HTTP and SSH are pretty different. HTTP is usually public and anonymous, SSH is usually private and authenticated. While QUIC is definitely a great technology for HTTP use case, I'm not so sure about SSH. Not saying it's not, just it's something to reason about.

For example x509 seems to be a disadvantage to me. I do not want anyone with a cheap DigiCert certificate be able to log in to my server, even as a result of some fat finger misconfiguration. OAuth assumes that both client and service provider can reach identity provider. Is it so for most serves? I am used to see pretty restricted setups, where many servers have no internet access and only update from a private package repository.

From one side, I really like the idea of reusing HTTP. Who does new protocols these days? Everything is JSON or XML over HTTP. And it's good enough for most cases. But is it good enough for SSH? WinRM works over HTTP, but it uses Kerberos for authentication.

Are there any significant real practical advantages? I don't see any. Are there any vulnerabilities, possibilities for misconfiguration, architectural flaws? Quite possible.

Re:SSH3: SSHv2 using HTTP/3 and QUIC by nixgeek on Saturday December 16, 2023 @11:58AM (#38665721)
“cheap DigiCert certificate” is already possible with misconfiguration of SSH’s TrustedUserCAKeys and without any out of tree patches. https://smallstep.com/blog/use-ssh-certificates/
Re:SSH3: SSHv2 using HTTP/3 and QUIC by frutiger on Saturday December 16, 2023 @03:08PM (#38667252)
SSH Certs are not related to x509 PKI certs. SSH certs are created with ssh-keygen and is the result of one key signing another. The public portion of the signing key (ie. the “cert”) needs to be distributed separately.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by vetinari on Saturday December 16, 2023 @04:38PM (#38667953)
Did you follow the link? The point was exactly setting up X.509 PKI for SSH authentication. Yes, it can be used with SSH, that was the GP's point.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by e12e on Saturday December 16, 2023 @08:06PM (#38669425)
The link talks about setting up a ssh ca, not x509?

> For our part, the most recent release of step & step-ca (v0.12.0) adds basic SSH certificate support. In other words:

> step-ca is now an SSH CA (in addition to being an X.509 CA)

> step makes it easy for users and hosts to get certificates from step-ca

It's a tool that do x509 ca for x509 things and ssh ca for ssh.

Re:SSH3: SSHv2 using HTTP/3 and QUIC by frutiger on Saturday December 16, 2023 @04:50PM (#38668062)
I’m replying to parent not the overall post.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by whatisyour on Saturday December 16, 2023 @04:44PM (#38668013)
you can disable X.509 for SSH
Re:SSH3: SSHv2 using HTTP/3 and QUIC by vore on Saturday December 16, 2023 @12:46PM (#38666238)
I don't see anything about using an X.509 certificate for logging in, just for a client authenticating the remote server. And, even then, TLS has support for mutual authentication so someone with a cheap DigiCert certificate logging into your server is not really a problem if you could configure mTLS on the server side to accept only certificates in a certain chain.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by magicalhippo on Saturday December 16, 2023 @12:47PM (#38666248)
> OAuth assumes that both client and service provider can reach identity provider.

You could use client credentials flow with a certificate. Then all you need is to register the public key with the server, much like good old SSH.

Re:SSH3: SSHv2 using HTTP/3 and QUIC by HeckFeck on Saturday December 16, 2023 @01:00PM (#38666351)
> Who does new protocols these days?

My business brain understands why, but my engineer’s heart laments.

Re:SSH3: SSHv2 using HTTP/3 and QUIC by iknowstuff on Saturday December 16, 2023 @02:17PM (#38666925)
QUIC is damn good though! Its minimal header has a very tiny overhead, and the protocol gives us so much for free. What’s to lament? The userspace impl?
Re:SSH3: SSHv2 using HTTP/3 and QUIC by HeckFeck on Monday December 18, 2023 @06:10PM (#38689695)
QUIC is indeed impressive and one of the developments that excite me.

I meant, I wish there were more application-layer protocols (like a new IRC, NNTP, rather than say Matrix or ActivityPub which is just JSON shunting over HTTP), the rest of the OSI stack gives us plenty of choice already :)

Re:SSH3: SSHv2 using HTTP/3 and QUIC by sargun on Saturday December 16, 2023 @03:11PM (#38667270)
You can already use certificates to login via SSH. Usually you setup your own certificate authority and sign your own certs because they need special attributes.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by adontz on Saturday December 16, 2023 @03:32PM (#38667420)
SSH certificates (I encourage using them!) are not x509, absolutely incompatible.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by dilyevsky on Saturday December 16, 2023 @04:22PM (#38667810)
It’s same general principle and same security model just different way of going about it. It supports CAs and extensions just like x509
Re:SSH3: SSHv2 using HTTP/3 and QUIC by adontz on Sunday December 17, 2023 @07:02AM (#38672290)
No. For instance SSH certificates are one level only, do not support trust chains, cross signing, and a lot of other x509 complexity.
Re:SSH3: SSHv2 using HTTP/3 and QUIC by ReK_ on Sunday December 17, 2023 @01:27AM (#38670809)
You're thinking of SSH keys, which are not certificates. SSH certificates are indeed x.509: https://datatracker.ietf.org/doc/html/rfc6187
Re:SSH3: SSHv2 using HTTP/3 and QUIC by adontz on Sunday December 17, 2023 @06:59AM (#38672278)
No, I'm thinking of SSH certificates.

Here is the description of file format, it's nothing like x509

https://github.com/openssh/openssh-portable/blob/master/PROT...

Re:SSH3: SSHv2 using HTTP/3 and QUIC by lakomen on Saturday December 16, 2023 @08:28PM (#38669552)
Yeah those filthy cheap DigiCert certs plebs pshh gasp. Only expensive Verisign golden batch certs get to log into my computers snobbynose

SCNR, I know it's HN which is short for "Humor? No we don't understand humor".