This repo countains ssh public keys.
Add you public ssh keys *.pub
into root folder
and run add_auth_keys.sh
on remote server.
sudo apt-get install wget unzip
or use other package manager to install wget && unzip
wget https://raw.githubusercontent.com/minsk-hackerspace/ssh-pub-keys/master/update_authorized_keys.sh -q -O - | sh
Short form:
wget goo.gl/jGyzbk -O - | sh
Run this from command line under specific user
{ crontab -l; echo '*/10 * * * * wget https://raw.githubusercontent.com/minsk-hackerspace/ssh-pub-keys/master/update_authorized_keys.sh -q -O - | sh'; } | crontab -
This cron job will update keys every 10 minutes
Beware, update script makes authorized_keys
backup.
It is your responsibility to delete old backups!
find ~/.ssh -name "*authorized_keys_*" -mindepth 1 -mtime +5 -delete
find ~/.ssh/keys_backup -name "*authorized_keys_*" -mindepth 1 -mtime +5 -delete
Deletes backups older than 5 days