Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

TheKingDave/public_keys_service

Public SSH keys API

I created this API because I wanted to update the access keys of my server with my Github keys. Once there was an API endpoint to get the keys of a user in text form but that disappeared. So I created this API to get those keys. While doing that I also export the keys in other formats.

For more information see the documentation at:
https://keys.service.thekingdave.com/

Example usage

#!/bin/bash
cd /home/david/.ssh/
cp authorized_keys bak.authorized_keys
curl -f https://keys.service.thekingdave.com/api/keys/thekingdave -o authorized_keys

Perfect to be performed in an crontab

10 0 * * * /home/david/.ssh/update_keys.sh