Very interesting project, I've been confronted with this kind of problem (managing SSH access for a large number of users) several times and don't think there's a perfect solution for it yet. An alternative (but also imperfect) solution that I've relied on in the past is using certificate-based authentication: https://www.digitalocean.com/community/tutorials/how-to-crea... This still requires the generation of certif…
Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
11–20 of 28 posts
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#12Earlier quoted context omitted.
If you're managing large amount of servers and don't want to update configs on the servers themselves then use e.g. OpenLDAP.
There is a security issue with using AD/OpenLDAP. That being passwords. An example is you can debug/trace the SSH process and see(log) passwords in clear text. Now of course this is both a trust and a escalated privilege issue. But a lot harder(impossible) with keys.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#13Genuine question: what functionality does this provide that e.g. Ansible doesn't? With Ansible, one can put the SSH keys into a .yml file in a format that is very similar to the examples in the OP, then the authorized_key module can be used to ensure that the key is present (or absent) on the remote servers. It's really-really trivial. Maybe the difference is that you can paste the SSH key into the CLI instead of a f…
Can you post an example of this? Link works too.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#14https://code.facebook.com/posts/365787980419535/scalable-and...
If you're in AWS, you can also look at Bless, which is Lambda-hosted and mints short-lived certificates with a command-line client:
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#15Very interesting project, I've been confronted with this kind of problem (managing SSH access for a large number of users) several times and don't think there's a perfect solution for it yet. An alternative (but also imperfect) solution that I've relied on in the past is using certificate-based authentication: https://www.digitalocean.com/community/tutorials/how-to-crea... This still requires the generation of certif…
FreeIPA - I wish more people knew about this. You can tie a public SSH key to a user (users can also self-register them) and it is automatically recognized on all hosts joined to the IPA domain, if you want to limit who has access to what the integrated RBAC facilities are there to handle that as well.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#16Very interesting project, I've been confronted with this kind of problem (managing SSH access for a large number of users) several times and don't think there's a perfect solution for it yet. An alternative (but also imperfect) solution that I've relied on in the past is using certificate-based authentication: https://www.digitalocean.com/community/tutorials/how-to-crea... This still requires the generation of certif…
They apply BeyondCorp style management for both server and web access.
There is also Teleport by Gravitational: https://gravitational.com/teleport/
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#17Slightly off-topic: I've seen a few references to the Asterix A38 scene in open source projects recently and it always seems to be a sure sign the developers are german. Is this actually a german-only thing?
Therefore it wouldn't surprise me if this scene is most popular with Germans and others nationalities only regard it as a funny, exaggerated sequence. Whereas for Germans it hits close to home.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#18Earlier quoted context omitted.
If you're managing large amount of servers and don't want to update configs on the servers themselves then use e.g. OpenLDAP.
There is a security issue with using AD/OpenLDAP. That being passwords. An example is you can debug/trace the SSH process and see(log) passwords in clear text. Now of course this is both a trust and a escalated privilege issue. But a lot harder(impossible) with keys.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#19Very interesting project, I've been confronted with this kind of problem (managing SSH access for a large number of users) several times and don't think there's a perfect solution for it yet. An alternative (but also imperfect) solution that I've relied on in the past is using certificate-based authentication: https://www.digitalocean.com/community/tutorials/how-to-crea... This still requires the generation of certif…
With our API, some customers are creating dynamic access rules (for example, an on-caller might have 'sudo' during their on-call week, but not at other times).
Like a hosted FreeIPA, but more powerful.
Re: Show HN: SSH Permit A38 – Central Managment and Deployment for SSH Keys
#20What's the advantage to this over setting up an SSH CA? https://code.facebook.com/posts/365787980419535/scalable-and... If you're in AWS, you can also look at Bless, which is Lambda-hosted and mints short-lived certificates with a command-line client: https://github.com/Netflix/bless
This does not work for interactive terminal use cases, but does work (in my experience) if you’re targeting immutable instances. It also has the lovely side effect that you can create scheduled tasks within the AWS control plane (if that’s your cup of tea).
Example SSM client: https://github.com/itsdalmo/ssm-sh
Disclaimer: I’m implementing this in a large enterprise environment.