3 ms·
Here's what I like to do on my server(s) in cron, which pulls my keys from github: @hourly <username> ssh-import-id gh:<github username> If I lose my keys
by ed25519FUUU 6y ago
Here's what I like to do on my server(s) in cron, which pulls my keys from github:
@hourly <username> ssh-import-id gh:<github username>
If I lose my keys to this host, I can simply update github.com with my new ones and go to lunch. I'll be able to login again shortly.
And on all of my hosts:
@reboot <username> ssh-import-id gh:<github username>
This is REALLY helpful on devices like raspberry pi, where they may stay shutdown / offline for years. The minute they're powered up again they'll get my fresh keys and I can login to them without needing a console.
http://manpages.ubuntu.com/manpages/bionic/man1/ssh-import-id.1.html http://manpages.ubuntu.com/manpages/bionic/man1/ssh-import-i...