by nzoschke · 10y ago · 0 comments
The answer is HTTPS.
Managing an SSH server with millions of customer pubkeys is a pain. Python/twisted and Go have decent SSH implementations but there are quirks and side effects a plenty.
Shells are scary. You have to be very careful about how you execute the program on the remote side of the pipe. Shell command parsing and escaping is gnarly.
Windows...
HTTPS with basic auth headers is much easier to scale.
The one gotcha is that it took a while for HTTP git to get "smart" and offer as efficient transport as SSH with access to a .git dir.
Even though client TLS certs are technically supported by a handful of services, there's nothing for HTTPS that matches the security and convenience of ssh-agent. It has a long way to go to catch up to where SSH was ten or fifteen years ago.
But for git you have the right answer.
I completely forgot this aspect because on OS X you can delegate git auth to Keychain with a helper.
https://help.github.com/articles/caching-your-github-passwor...
I hope this pattern catches on for services other than git.
And millions of passwords isn't because ... ? Whatever solution the industry has arrived at for storing a large number of user passwords and authenticating against them, can be applied to SSH keys too. I would be greatly suprised if Github uses ~/.ssh/authorized_keys to handle SSH authentication at its scale.
> Python/twisted and Go have decent SSH implementations but
So is the case with HTTPS implementations. It's just a standard, how it's implemented is not under its control. On the other hand, we have some good implementations of HTTPS, and similarly we have good implementations of SSH too: libssh2.
> Shells are scary.
So don't use shells over the SSH protocol. Make the server execute (upon successful auth) something that isn't a shell.
> Windows...
Agreed. Until user-agents popularly support a protocol, adoption faces large obstacles.
> HTTPS with basic auth headers is much easier to scale
Easier how? You have to do less computation to verify the password? This has nothing to do with the transport, and everything to do with the cryptographic strength of the password. SSH is better here because of its good support of keys (versus TLS client certs).