|
|
|
|
|
by erikano
4151 days ago
|
|
I like alternative two, except that I'd have it be ssh <token>@<host> auth
This feels more natural to me and makes it easier to support other commands in the future should one wish to do so.Regarding the part where he said: >Running a custom SSH server along side a web server is not convenient. There is no good equivalent to the HTTP Host header, so hosting multiple SSH servers on a single IP address doesn’t work well. That's not a problem. Your server got the host header over HTTP. When you generate the token, just tie the token to that host name. |
|
You're right about tying tokens to host names, that would work. But you'd have to justify whether the extra complexity of multiple web servers preregistering tokens with a SSH front-end was worth it. Another approach would be embedding a static host identifier in the username as well.
Although my knowledge of the SSH protocol isn't complete, a related issue appears to be that servers prove their identity before clients send their usernames. That means servers sharing the same IP/port would also have the same host fingerprint.
It could be acceptable if all the services were run by the same organisation, but on a platform like Heroku it would be more of a challenge.