Repository navigation
Replies: 1 comment
|
The Google authentication part should be separate, but yes, you can log in to Linux servers by relying on the Device Authorization grant. The short version is that this flow is specifically designed for devices with limited input capabilities (e.g., for SSH that would be a lack of a browser integration) and splits the process into two subflows - one where the service requires authentication from the SSO, and the other where the user uses a code returned by the SSO in their browser to authorize the connection. For SSH this would usually be implemented as a PAM module to handle the authentication. There are some details about how this can be achieved online - search for "ssh device authorization flow" and you should find an Okta developer blog from 2021 with some pointers into how this can be implemented. There are also some example implementations on various git repositories, but I have not looked into them in any detail. Note that there may be some (arguably better) alternatives to this, namely zero trust SSH bastions that support OIDC authentication; they separate the authentication process from SSH access and provide RBAC access to systems behind the bastion. |
Uh oh!
There was an error while loading. Please reload this page.
I do not want a local keycloak user list, want to directly use google credentials to login via ssh to linux servers.
Does this work, and is it a good idea.
All reactions