3 points · by ashleyhindle · 10y ago · 3 comments
I'd probably throw in some checks for the return code given by curl.
Also, while I can't speak for the other applications, Ansible has this feature built-in.
GitHub - ashleyhindle/addkeysfrompublic: Simple script to allow you to easily setup authorised key files from publicly accessible SSH keys - Primarily GitHub and GitLab instances
Simple script to allow you to easily setup authorised key files from publicly accessible SSH keys - Primarily GitHub and GitLab instances - ashleyhindle/addkeysfrompublic
GitHub